Share via


PrivilegeNotHeldException 构造函数

定义

初始化 PrivilegeNotHeldException 类的新实例。

重载

PrivilegeNotHeldException()

初始化 PrivilegeNotHeldException 类的新实例。

PrivilegeNotHeldException(String)

使用指定的特权初始化 PrivilegeNotHeldException 类的新实例。

PrivilegeNotHeldException(String, Exception)

使用指定的异常初始化 PrivilegeNotHeldException 类的新实例。

PrivilegeNotHeldException()

初始化 PrivilegeNotHeldException 类的新实例。

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

适用于

PrivilegeNotHeldException(String)

使用指定的特权初始化 PrivilegeNotHeldException 类的新实例。

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)

参数

privilege
String

未启用的特权。

适用于

PrivilegeNotHeldException(String, Exception)

使用指定的异常初始化 PrivilegeNotHeldException 类的新实例。

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)

参数

privilege
String

未启用的特权。

inner
Exception

导致当前异常的异常。 如果 innerException 参数不是 null 引用(在 Visual Basic 中为 Nothing),则在处理内部异常的 catch 块中引发当前异常。

适用于