語言

PrivilegeNotHeldException 建構函式

定義

初始化 PrivilegeNotHeldException 類別的新執行個體。

多載

名稱 Description
PrivilegeNotHeldException()

初始化 PrivilegeNotHeldException 類別的新執行個體。

PrivilegeNotHeldException(String)

利用指定的權限初始化該類別的新實例 PrivilegeNotHeldException 。

PrivilegeNotHeldException(String, Exception)

透過使用指定的例外初始化該類別的新 PrivilegeNotHeldException 實例。

PrivilegeNotHeldException()

來源:
PrivilegeNotHeldException.cs

初始化 PrivilegeNotHeldException 類別的新執行個體。

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

適用於

PrivilegeNotHeldException(String)

來源:
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)

來源:
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 。

適用於