DirectoryServicesPermission.DirectoryServicesPermission (DirectoryServicesPermissionAccess, String)
The DirectoryServicesPermission constructor initializes a new instance of the DirectoryServicesPermission class with the specified access levels and path to an Active Directory node.
public DirectoryServicesPermission(
DirectoryServicesPermissionAccess permissionAccess,
String path
);
Public Sub New( _
ByVal permissionAccess As DirectoryServicesPermissionAccess, _
ByVal path As String _
)
Parameters
- permissionAccess
One of the DirectoryServicesPermissionAccess values. - path
The path of the Active Directory object, otherwise known as the ADsPath, to which the permissions apply.
Security
Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries From Partially Trusted Code.
Requirements
Client | Requires Windows XP Home Edition, Windows XP Professional, Windows Me, or Windows 98. |
Server | Requires Windows Server 2003, Windows 2000, or Windows NT 4.0. |
Namespace | Defined in System.DirectoryServices. |
Assembly | Requires System.DirectoryServices (in System.DirectoryServices.dll). |
.NET Framework | Requires .NET Framework 1.0. |
See Also
DirectoryServicesPermission Constructors, DirectoryServicesPermission Properties, DirectoryServicesPermission Members (Visual J# Syntax), System.DirectoryServices Namespace, Managed Extensions for C++ Programming