Muokkaa

Jaa


ObjectAccessRule Constructor

Definition

Initializes a new instance of the ObjectAccessRule class with the specified values.

protected:
 ObjectAccessRule(System::Security::Principal::IdentityReference ^ identity, int accessMask, bool isInherited, System::Security::AccessControl::InheritanceFlags inheritanceFlags, System::Security::AccessControl::PropagationFlags propagationFlags, Guid objectType, Guid inheritedObjectType, System::Security::AccessControl::AccessControlType type);
protected ObjectAccessRule (System.Security.Principal.IdentityReference identity, int accessMask, bool isInherited, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, Guid objectType, Guid inheritedObjectType, System.Security.AccessControl.AccessControlType type);
new System.Security.AccessControl.ObjectAccessRule : System.Security.Principal.IdentityReference * int * bool * System.Security.AccessControl.InheritanceFlags * System.Security.AccessControl.PropagationFlags * Guid * Guid * System.Security.AccessControl.AccessControlType -> System.Security.AccessControl.ObjectAccessRule
Protected Sub New (identity As IdentityReference, accessMask As Integer, isInherited As Boolean, inheritanceFlags As InheritanceFlags, propagationFlags As PropagationFlags, objectType As Guid, inheritedObjectType As Guid, type As AccessControlType)

Parameters

identity
IdentityReference

The identity to which the access rule applies. It must be an object that can be cast as a SecurityIdentifier.

accessMask
Int32

The access mask of this rule. The access mask is a 32-bit collection of anonymous bits, the meaning of which is defined by the individual integrators.

isInherited
Boolean

true if this rule is inherited from a parent container.

inheritanceFlags
InheritanceFlags

Specifies the inheritance properties of the access rule.

propagationFlags
PropagationFlags

Specifies whether inherited access rules are automatically propagated. The propagation flags are ignored if inheritanceFlags is set to None.

objectType
Guid

The type of object to which the rule applies.

inheritedObjectType
Guid

The type of child object that can inherit the rule.

type
AccessControlType

Specifies whether this rule allows or denies access.

Exceptions

The value of the identity parameter cannot be cast as a SecurityIdentifier, or the type parameter contains an invalid value.

The value of the accessMask parameter is 0, or the inheritanceFlags or propagationFlags parameters contain unrecognized flag values.

Applies to