AccessDeniedException Constructors

Definition

Overloads

AccessDeniedException()

Initializes a new instance of the AccessDeniedException class.

AccessDeniedException(String)

Initializes a new instance of the AccessDeniedException class by using the provided message.

AccessDeniedException(SerializationInfo, StreamingContext)

Initializes a new instance of the AccessDeniedException class by using the provided information and context.

AccessDeniedException(String, Exception)

Initializes a new instance of the AccessDeniedException class by using the provided message and the inner exception.

AccessDeniedException()

Initializes a new instance of the AccessDeniedException class.

public:
 AccessDeniedException();
public AccessDeniedException ();
Public Sub New ()

Applies to

AccessDeniedException(String)

Initializes a new instance of the AccessDeniedException class by using the provided message.

public:
 AccessDeniedException(System::String ^ msg);
public AccessDeniedException (string msg);
new Microsoft.VisualStudio.TestTools.Exceptions.AccessDeniedException : string -> Microsoft.VisualStudio.TestTools.Exceptions.AccessDeniedException
Public Sub New (msg As String)

Parameters

msg
String

Message that describes the exception.

Applies to

AccessDeniedException(SerializationInfo, StreamingContext)

Initializes a new instance of the AccessDeniedException class by using the provided information and context.

protected:
 AccessDeniedException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected AccessDeniedException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.VisualStudio.TestTools.Exceptions.AccessDeniedException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.VisualStudio.TestTools.Exceptions.AccessDeniedException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

Information about the exception.

context
StreamingContext

The source and the destination of the exception.

Applies to

AccessDeniedException(String, Exception)

Initializes a new instance of the AccessDeniedException class by using the provided message and the inner exception.

public:
 AccessDeniedException(System::String ^ msg, Exception ^ inner);
public AccessDeniedException (string msg, Exception inner);
new Microsoft.VisualStudio.TestTools.Exceptions.AccessDeniedException : string * Exception -> Microsoft.VisualStudio.TestTools.Exceptions.AccessDeniedException
Public Sub New (msg As String, inner As Exception)

Parameters

msg
String

Message that describes the exception.

inner
Exception

Exception that caused the current exception.

Applies to