ActiveDirectorySecurity.RemoveAccess 方法

定义

从对象的 DACL 中删除具有指定 IdentityReference 对象和 AccessControlType 对象的所有访问规则。

public:
 void RemoveAccess(System::Security::Principal::IdentityReference ^ identity, System::Security::AccessControl::AccessControlType type);
public void RemoveAccess(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type);
member this.RemoveAccess : System.Security.Principal.IdentityReference * System.Security.AccessControl.AccessControlType -> unit
Public Sub RemoveAccess (identity As IdentityReference, type As AccessControlType)

参数

identity
IdentityReference

解析 IdentityReference 为安全标识符(SID)的对象,例如 NTAccount 对象。

type
AccessControlType

AccessControlType包含 ACE 类型的对象。

适用于