ObjectSecurity<T>.AccessRuleFactory Metod

Definition

Initierar en ny instans av klassen ObjectAccessRule som representerar en ny åtkomstkontrollregel för det associerade säkerhetsobjektet.

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

Parametrar

identityReference
IdentityReference

Representerar ett användarkonto.

accessMask
Int32

Åtkomsttypen.

isInherited
Boolean

trueom åtkomstregeln ärvs. annars . false

inheritanceFlags
InheritanceFlags

Anger hur åtkomstmasker ska spridas till underordnade objekt.

propagationFlags
PropagationFlags

Anger hur du sprider Access Control poster (ACL) till underordnade objekt.

type
AccessControlType

Anger om åtkomst tillåts eller nekas.

Returer

Representerar en ny regel för åtkomstkontroll för den angivna användaren med angivna åtkomsträttigheter, åtkomstkontroll och flaggor.

Gäller för