<PackageReference Include="System.Security.Permissions" Version="10.0.0-preview.1.25080.5" />

DirectoryServicesPermission

The DirectoryServicesPermission class allows you to control code access security permissions for DirectoryServices.

Gets the collection of permission entries for this permission.

Initializes a new instance of the DirectoryServicesPermission class.

Initializes a new instance of the DirectoryServicesPermission class with the specified permission access level entries.

Initializes a new instance of the DirectoryServicesPermission class with the specified permission state.

public DirectoryServicesPermission(DirectoryServicesPermissionAccess permissionAccess, string path)

Initializes a new instance of the DirectoryServicesPermission class with the specified access levels and specified path to an Active Directory Domain Services node.