Επεξεργασία

Κοινή χρήση μέσω


PrivilegeNotHeldException Constructors

Definition

Initializes a new instance of the PrivilegeNotHeldException class.

Overloads

PrivilegeNotHeldException()

Initializes a new instance of the PrivilegeNotHeldException class.

PrivilegeNotHeldException(String)

Initializes a new instance of the PrivilegeNotHeldException class by using the specified privilege.

PrivilegeNotHeldException(String, Exception)

Initializes a new instance of the PrivilegeNotHeldException class by using the specified exception.

PrivilegeNotHeldException()

Initializes a new instance of the PrivilegeNotHeldException class.

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

Applies to

PrivilegeNotHeldException(String)

Initializes a new instance of the PrivilegeNotHeldException class by using the specified privilege.

public:
 PrivilegeNotHeldException(System::String ^ privilege);
public PrivilegeNotHeldException (string? privilege);
public PrivilegeNotHeldException (string privilege);
new System.Security.AccessControl.PrivilegeNotHeldException : string -> System.Security.AccessControl.PrivilegeNotHeldException
Public Sub New (privilege As String)

Parameters

privilege
String

The privilege that is not enabled.

Applies to

PrivilegeNotHeldException(String, Exception)

Initializes a new instance of the PrivilegeNotHeldException class by using the specified exception.

public:
 PrivilegeNotHeldException(System::String ^ privilege, Exception ^ inner);
public PrivilegeNotHeldException (string? privilege, Exception? inner);
public PrivilegeNotHeldException (string privilege, Exception inner);
new System.Security.AccessControl.PrivilegeNotHeldException : string * Exception -> System.Security.AccessControl.PrivilegeNotHeldException
Public Sub New (privilege As String, inner As Exception)

Parameters

privilege
String

The privilege that is not enabled.

inner
Exception

The exception that is the cause of the current exception. If the innerException parameter is not a null reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception.

Applies to