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 區塊中引發目前的例外狀況。

適用於