DirectoryObjectSecurity.AccessRuleFactory Metoda

Definice

Inicializuje novou instanci AccessRule třídy se zadanými hodnotami.

public:
 virtual 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 objectType, Guid inheritedObjectType);
public virtual 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 objectType, Guid inheritedObjectType);
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 Overridable Function AccessRuleFactory (identityReference As IdentityReference, accessMask As Integer, isInherited As Boolean, inheritanceFlags As InheritanceFlags, propagationFlags As PropagationFlags, type As AccessControlType, objectType As Guid, inheritedObjectType As Guid) As AccessRule

Parametry

identityReference
IdentityReference

Identita, na kterou se vztahuje pravidlo přístupu. Musí to být objekt, který lze přetypovat jako SecurityIdentifier.

accessMask
Int32

Přístupová maska tohoto pravidla Přístupová maska je 32bitová kolekce anonymních bitů, což je význam, který definuje jednotliví integrátoři.

isInherited
Boolean

true Pokud je toto pravidlo zděděno z nadřazeného kontejneru.

inheritanceFlags
InheritanceFlags

Určuje vlastnosti dědičnosti pravidla přístupu.

propagationFlags
PropagationFlags

Určuje, jestli se zděděná pravidla přístupu automaticky rozšíří. Příznaky šíření jsou ignorovány, pokud inheritanceFlags je nastavena na None.

type
AccessControlType

Určuje platný typ řízení přístupu.

objectType
Guid

Identita třídy objektů, na které se nové pravidlo přístupu vztahuje.

inheritedObjectType
Guid

Identita třídy podřízených objektů, které mohou dědit nové pravidlo přístupu.

Návraty

Objekt AccessRule , který tato metoda vytvoří.

Platí pro