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 );
Exception Type | Condition |
---|---|
SecurityException | if the caller is not fully trusted. That is, the caller must have an unrestricted PermissionSet. |