共用方式為


ObjectSecurity<T>.AccessRuleFactory 方法

定義

初始化 ObjectAccessRule 類別的新執行個體,這個執行個體表示相關聯安全物件的新存取控制規則。

public:
 override System::Security::AccessControl::AccessRule ^ AccessRuleFactory(System::Security::Principal::IdentityReference ^ identityReference, int accessMask, bool isInherited, System::Security::AccessControl::InheritanceFlags inheritanceFlags, System::Security::AccessControl::PropagationFlags propagationFlags, System::Security::AccessControl::AccessControlType type);
public override System.Security.AccessControl.AccessRule AccessRuleFactory (System.Security.Principal.IdentityReference identityReference, int accessMask, bool isInherited, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.AccessControlType type);
override this.AccessRuleFactory : System.Security.Principal.IdentityReference * int * bool * System.Security.AccessControl.InheritanceFlags * System.Security.AccessControl.PropagationFlags * System.Security.AccessControl.AccessControlType -> System.Security.AccessControl.AccessRule
Public Overrides Function AccessRuleFactory (identityReference As IdentityReference, accessMask As Integer, isInherited As Boolean, inheritanceFlags As InheritanceFlags, propagationFlags As PropagationFlags, type As AccessControlType) As AccessRule

參數

identityReference
IdentityReference

代表使用者帳戶。

accessMask
Int32

存取類型。

isInherited
Boolean

如果繼承存取規則,則為 true,否則為 false

inheritanceFlags
InheritanceFlags

指定如何將存取遮罩散佈到子物件。

propagationFlags
PropagationFlags

指定如何將存取控制項目 (ACE) 傳用至子物件。

type
AccessControlType

指定允許存取還是拒絕存取。

傳回

表示指定之使用者的新存取控制規則,具有指定的存取權限、存取控制和旗標。

適用於