Share via


ObjectSecurity.AccessRuleFactory Metoda

Definice

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

public:
 abstract 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 abstract 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);
abstract member AccessRuleFactory : System.Security.Principal.IdentityReference * int * bool * System.Security.AccessControl.InheritanceFlags * System.Security.AccessControl.PropagationFlags * System.Security.AccessControl.AccessControlType -> System.Security.AccessControl.AccessRule
Public MustOverride Function AccessRuleFactory (identityReference As IdentityReference, accessMask As Integer, isInherited As Boolean, inheritanceFlags As InheritanceFlags, propagationFlags As PropagationFlags, type As AccessControlType) As AccessRule

Parametry

identityReference
IdentityReference

Identita, na kterou se pravidlo přístupu vztahuje. Musí se jednat o objekt, který lze přetypovat jako SecurityIdentifierobjekt .

accessMask
Int32

Maska přístupu tohoto pravidla Maska přístupu je 32bitová kolekce anonymních bitů, jejíž význam 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 budou automaticky šířit. Příznaky šíření se ignorují, pokud inheritanceFlags je nastavená hodnota None.

type
AccessControlType

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

Návraty

Objekt AccessRule , který tato metoda vytvoří.

Platí pro