ActiveDirectorySecurity.RemoveAccess 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从对象的 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 类型的对象。