ActiveDirectorySecurity.AccessRuleFactory 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建一个 AccessRule 对象。
重载
AccessRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AccessControlType)
- Source:
- ActiveDirectorySecurity.cs
- Source:
- ActiveDirectorySecurity.cs
- Source:
- ActiveDirectorySecurity.cs
创建具有指定值的 AccessRule 对象。
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 sealed 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 NotOverridable Function AccessRuleFactory (identityReference As IdentityReference, accessMask As Integer, isInherited As Boolean, inheritanceFlags As InheritanceFlags, propagationFlags As PropagationFlags, type As AccessControlType) As AccessRule
参数
- identityReference
- IdentityReference
解析为安全标识符 (SID) 的 IdentityReference 对象,例如 NTAccount 对象。
- inheritanceFlags
- InheritanceFlags
一个 InheritanceFlags 对象,其中包含目录对象上的继承标志。
- propagationFlags
- PropagationFlags
一个 PropagationFlags 对象,其中包含目录对象的继承传播标志。
- type
- AccessControlType
包含 ACE 类型的 AccessControlType 对象。
返回
与 ActiveDirectorySecurity 对象相对应的 AccessRule。
另请参阅
适用于
AccessRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AccessControlType, Guid, Guid)
- Source:
- ActiveDirectorySecurity.cs
- Source:
- ActiveDirectorySecurity.cs
- Source:
- ActiveDirectorySecurity.cs
创建具有指定值的 AccessRule 对象。
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, Guid objectGuid, Guid inheritedObjectGuid);
public override sealed 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, Guid objectGuid, Guid inheritedObjectGuid);
override this.AccessRuleFactory : System.Security.Principal.IdentityReference * int * bool * System.Security.AccessControl.InheritanceFlags * System.Security.AccessControl.PropagationFlags * System.Security.AccessControl.AccessControlType * Guid * Guid -> System.Security.AccessControl.AccessRule
Public Overrides NotOverridable Function AccessRuleFactory (identityReference As IdentityReference, accessMask As Integer, isInherited As Boolean, inheritanceFlags As InheritanceFlags, propagationFlags As PropagationFlags, type As AccessControlType, objectGuid As Guid, inheritedObjectGuid As Guid) As AccessRule
参数
- identityReference
- IdentityReference
解析为安全标识符 (SID) 的 IdentityReference 对象,如 NTAccount 对象。
- inheritanceFlags
- InheritanceFlags
一个 InheritanceFlags 对象,其中包含目录对象的继承标志。
- propagationFlags
- PropagationFlags
一个 PropagationFlags 对象,其中包含目录对象的继承传播标志。
- type
- AccessControlType
包含 ACE 类型的 AccessControlType 对象。
返回
与 ActiveDirectorySecurity 对象相对应的 AccessRule。