DirectoryServicesPermission.DirectoryServicesPermission (DirectoryServicesPermissionEntry[][])

The DirectoryServicesPermission constructor initializes a new instance of the DirectoryServicesPermission class with the specified permission access level entries.

public DirectoryServicesPermission(
  DirectoryServicesPermissionEntry[] permissionAccessEntries
Public Sub New( _
  ByVal permissionAccessEntries() As DirectoryServicesPermissionEntry _



Exception type Condition
ArgumentNullException The specified value for the permissionAccessEntries parameter is a null reference (Nothing in Visual Basic).


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.


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.

Defined in System.DirectoryServices.


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