Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

UnauthorizedAccessException Constructor

.NET Framework 1.1

Initializes a new instance of the UnauthorizedAccessException class.

Overload List

Initializes a new instance of the UnauthorizedAccessException class.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New()
[C#] public UnauthorizedAccessException();
[C++] public: UnauthorizedAccessException();
[JScript] public function UnauthorizedAccessException();

Initializes a new instance of the UnauthorizedAccessException class with a specified error message.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(String)
[C#] public UnauthorizedAccessException(string);
[C++] public: UnauthorizedAccessException(String*);
[JScript] public function UnauthorizedAccessException(String);

Initializes a new instance of the UnauthorizedAccessException class with serialized data.

[Visual Basic] Protected Sub New(SerializationInfo, StreamingContext)
[C#] protected UnauthorizedAccessException(SerializationInfo, StreamingContext);
[C++] protected: UnauthorizedAccessException(SerializationInfo*, StreamingContext);
[JScript] protected function UnauthorizedAccessException(SerializationInfo, StreamingContext);

Initializes a new instance of the UnauthorizedAccessException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(String, Exception)
[C#] public UnauthorizedAccessException(string, Exception);
[C++] public: UnauthorizedAccessException(String*, Exception*);
[JScript] public function UnauthorizedAccessException(String, Exception);

See Also

UnauthorizedAccessException Class | UnauthorizedAccessException Members | System Namespace

Show:
© 2015 Microsoft