共用方式為


DirectoryServicesPermission 建構函式

定義

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

多載

DirectoryServicesPermission()

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

DirectoryServicesPermission(DirectoryServicesPermissionEntry[])

使用指定的使用權限存取等級項目,初始化 DirectoryServicesPermission 類別的新執行個體。

DirectoryServicesPermission(PermissionState)

使用指定權限狀態,初始化 DirectoryServicesPermission 類別的新執行個體。

DirectoryServicesPermission(DirectoryServicesPermissionAccess, String)

使用指定之存取層級和 Active Directory 網域服務節點之指定的路徑,初始化 DirectoryServicesPermission 類別的新執行個體。

DirectoryServicesPermission()

來源:
DirectoryServicesPermission.cs
來源:
DirectoryServicesPermission.cs
來源:
DirectoryServicesPermission.cs

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

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

適用於

DirectoryServicesPermission(DirectoryServicesPermissionEntry[])

來源:
DirectoryServicesPermission.cs
來源:
DirectoryServicesPermission.cs
來源:
DirectoryServicesPermission.cs

使用指定的使用權限存取等級項目,初始化 DirectoryServicesPermission 類別的新執行個體。

public:
 DirectoryServicesPermission(cli::array <System::DirectoryServices::DirectoryServicesPermissionEntry ^> ^ permissionAccessEntries);
public DirectoryServicesPermission (System.DirectoryServices.DirectoryServicesPermissionEntry[] permissionAccessEntries);
public DirectoryServicesPermission (System.DirectoryServices.DirectoryServicesPermissionEntry[]? permissionAccessEntries);
new System.DirectoryServices.DirectoryServicesPermission : System.DirectoryServices.DirectoryServicesPermissionEntry[] -> System.DirectoryServices.DirectoryServicesPermission
Public Sub New (permissionAccessEntries As DirectoryServicesPermissionEntry())

參數

permissionAccessEntries
DirectoryServicesPermissionEntry[]

DirectoryServicesPermissionEntry 物件的陣列。 PermissionEntries 屬性設為這個值。

例外狀況

permissionAccessEntries 參數指定的值為 null

適用於

DirectoryServicesPermission(PermissionState)

來源:
DirectoryServicesPermission.cs
來源:
DirectoryServicesPermission.cs
來源:
DirectoryServicesPermission.cs

使用指定權限狀態,初始化 DirectoryServicesPermission 類別的新執行個體。

public:
 DirectoryServicesPermission(System::Security::Permissions::PermissionState state);
public DirectoryServicesPermission (System.Security.Permissions.PermissionState state);
new System.DirectoryServices.DirectoryServicesPermission : System.Security.Permissions.PermissionState -> System.DirectoryServices.DirectoryServicesPermission
Public Sub New (state As PermissionState)

參數

state
PermissionState

其中一個 PermissionState 值。

例外狀況

State 參數不是有效的 PermissionState 值。

另請參閱

適用於

DirectoryServicesPermission(DirectoryServicesPermissionAccess, String)

來源:
DirectoryServicesPermission.cs
來源:
DirectoryServicesPermission.cs
來源:
DirectoryServicesPermission.cs

使用指定之存取層級和 Active Directory 網域服務節點之指定的路徑,初始化 DirectoryServicesPermission 類別的新執行個體。

public:
 DirectoryServicesPermission(System::DirectoryServices::DirectoryServicesPermissionAccess permissionAccess, System::String ^ path);
public DirectoryServicesPermission (System.DirectoryServices.DirectoryServicesPermissionAccess permissionAccess, string path);
public DirectoryServicesPermission (System.DirectoryServices.DirectoryServicesPermissionAccess permissionAccess, string? path);
new System.DirectoryServices.DirectoryServicesPermission : System.DirectoryServices.DirectoryServicesPermissionAccess * string -> System.DirectoryServices.DirectoryServicesPermission
Public Sub New (permissionAccess As DirectoryServicesPermissionAccess, path As String)

參數

path
String

要對其套用使用權限之 Active Directory 網域服務物件的路徑,也就是 ADsPath。

適用於