PrivilegeNotHeldException 构造函数

定义

初始化 PrivilegeNotHeldException 类的新实例。

重载

名称 说明
PrivilegeNotHeldException()

初始化 PrivilegeNotHeldException 类的新实例。

PrivilegeNotHeldException(String)

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

PrivilegeNotHeldException(String, Exception)

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

PrivilegeNotHeldException()

Source:
PrivilegeNotHeldException.cs

初始化 PrivilegeNotHeldException 类的新实例。

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

适用于

PrivilegeNotHeldException(String)

Source:
PrivilegeNotHeldException.cs

使用指定的特权初始化类的新实例 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)

Source:
PrivilegeNotHeldException.cs

使用指定的异常初始化类的新实例 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 引用(Nothing在 Visual Basic 中),则当前异常在处理内部异常的块中catch引发。

适用于