NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Environment.Exit

Terminates this process with the specified exit code.

[Visual Basic]
Public Shared Sub Exit( _
   ByVal exitCode As Integer _
)
[C#]
public static void Exit(
   int exitCode
);
[C++]
public: static void Exit(
   int exitCode
);
[JScript]
public static function Exit(
   exitCode : int
);

Parameters

exitCode
exit code to be returned to the OS

Exceptions

Exception Type Condition
SecurityException if the caller is not fully trusted. That is, the caller must have an unrestricted PermissionSet.

See Also

Environment Class | Environment Members | System Namespace