DirectoryServicesPermission 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 DirectoryServicesPermission 类的新实例。
重载
DirectoryServicesPermission() |
初始化 DirectoryServicesPermission 类的新实例。 |
DirectoryServicesPermission(DirectoryServicesPermissionEntry[]) |
使用指定的权限访问级别项初始化 DirectoryServicesPermission 类的新实例。 |
DirectoryServicesPermission(PermissionState) |
初始化具有指定权限状态的 DirectoryServicesPermission 类的一个新实例。 |
DirectoryServicesPermission(DirectoryServicesPermissionAccess, String) |
使用指定的访问级别和 Active Directory 域服务节点的指定路径来初始化 DirectoryServicesPermission 类的新实例。 |
DirectoryServicesPermission()
初始化 DirectoryServicesPermission 类的新实例。
public:
DirectoryServicesPermission();
public DirectoryServicesPermission ();
Public Sub New ()
适用于
DirectoryServicesPermission(DirectoryServicesPermissionEntry[])
使用指定的权限访问级别项初始化 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 类的一个新实例。
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)
使用指定的访问级别和 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)
参数
- permissionAccess
- DirectoryServicesPermissionAccess
- path
- String
应用权限的 Active Directory 域服务对象的路径,也称为 ADsPath。