Share via


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

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

type
AccessControlType

包含 ACE 类型的 AccessControlType 对象。

适用于