共用方式為


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 物件 (例如 NTAccount 物件),解析為安全識別項 (SID)。

type
AccessControlType

AccessControlType 物件,包含 ACE 型別。

適用於