PropertyAccessRule Constructors

Definition

Initializes a new instance of the PropertyAccessRule class.

Overloads

PropertyAccessRule(IdentityReference, AccessControlType, PropertyAccess)

Initializes a new instance of the PropertyAccessRule class with the specified identity reference, access control type, and property access.

PropertyAccessRule(IdentityReference, AccessControlType, PropertyAccess, ActiveDirectorySecurityInheritance)

Initializes a new instance of the PropertyAccessRule class with the specified identity reference, access control type, property access, and Active Directory Domain Services security inheritance.

PropertyAccessRule(IdentityReference, AccessControlType, PropertyAccess, Guid)

Initializes a new instance of the PropertyAccessRule class with the specified identity reference, access control type, property access, and property type.

PropertyAccessRule(IdentityReference, AccessControlType, PropertyAccess, ActiveDirectorySecurityInheritance, Guid)

Initializes a new instance of the PropertyAccessRule class with the specified identity reference, access control type, property access, Active Directory Domain Services security inheritance, and inherited object type.

PropertyAccessRule(IdentityReference, AccessControlType, PropertyAccess, Guid, ActiveDirectorySecurityInheritance)

Initializes a new instance of the PropertyAccessRule class with the specified identity reference, access control type, property access, property type, and Active Directory Domain Services security inheritance.

PropertyAccessRule(IdentityReference, AccessControlType, PropertyAccess, Guid, ActiveDirectorySecurityInheritance, Guid)

Initializes a new instance of the PropertyAccessRule class with the specified identity reference, access control type, property access, property type, Active Directory Domain Services security inheritance, and inherited object type.

PropertyAccessRule(IdentityReference, AccessControlType, PropertyAccess)

Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs

Initializes a new instance of the PropertyAccessRule class with the specified identity reference, access control type, and property access.

public PropertyAccessRule (System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, System.DirectoryServices.PropertyAccess access);

Parameters

identity
IdentityReference

An IdentityReference object that identifies the trustee of the access rule.

type
AccessControlType

One of the AccessControlType enumeration values that specifies the access rule type.

access
PropertyAccess

One of the PropertyAccess enumeration values that specifies the property access type.

Remarks

When you use this constructor, it creates a property access rule that applies to all property types.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

PropertyAccessRule(IdentityReference, AccessControlType, PropertyAccess, ActiveDirectorySecurityInheritance)

Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs

Initializes a new instance of the PropertyAccessRule class with the specified identity reference, access control type, property access, and Active Directory Domain Services security inheritance.

public PropertyAccessRule (System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, System.DirectoryServices.PropertyAccess access, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType);

Parameters

identity
IdentityReference

An IdentityReference object that identifies the trustee of the access rule.

type
AccessControlType

One of the AccessControlType enumeration values that specifies the access rule type.

access
PropertyAccess

One of the PropertyAccess enumeration values that specifies the property access type.

inheritanceType
ActiveDirectorySecurityInheritance

One of the ActiveDirectorySecurityInheritance enumeration values that specifies the inheritance type of the access rule.

Remarks

When you use this constructor, it creates a property access rule that applies to all property types.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

PropertyAccessRule(IdentityReference, AccessControlType, PropertyAccess, Guid)

Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs

Initializes a new instance of the PropertyAccessRule class with the specified identity reference, access control type, property access, and property type.

public PropertyAccessRule (System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, System.DirectoryServices.PropertyAccess access, Guid propertyType);

Parameters

identity
IdentityReference

An IdentityReference object that identifies the trustee of the access rule.

type
AccessControlType

One of the AccessControlType enumeration values that specifies the access rule type.

access
PropertyAccess

One of the PropertyAccess enumeration values that specifies the property access type.

propertyType
Guid

The schema GUID of the property that this access rule applies to. If this is Empty, then the access rule applies to all property types.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

PropertyAccessRule(IdentityReference, AccessControlType, PropertyAccess, ActiveDirectorySecurityInheritance, Guid)

Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs

Initializes a new instance of the PropertyAccessRule class with the specified identity reference, access control type, property access, Active Directory Domain Services security inheritance, and inherited object type.

public PropertyAccessRule (System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, System.DirectoryServices.PropertyAccess access, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType, Guid inheritedObjectType);

Parameters

identity
IdentityReference

An IdentityReference object that identifies the trustee of the access rule.

type
AccessControlType

One of the AccessControlType enumeration values that specifies the access rule type.

access
PropertyAccess

One of the PropertyAccess enumeration values that specifies the property access type.

inheritanceType
ActiveDirectorySecurityInheritance

One of the ActiveDirectorySecurityInheritance enumeration values that specifies the inheritance type of the access rule.

inheritedObjectType
Guid

The schema GUID of the child object type that can inherit this access rule.

Remarks

When you use this constructor, it creates a property access rule that applies to all property types.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

PropertyAccessRule(IdentityReference, AccessControlType, PropertyAccess, Guid, ActiveDirectorySecurityInheritance)

Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs

Initializes a new instance of the PropertyAccessRule class with the specified identity reference, access control type, property access, property type, and Active Directory Domain Services security inheritance.

public PropertyAccessRule (System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, System.DirectoryServices.PropertyAccess access, Guid propertyType, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType);

Parameters

identity
IdentityReference

An IdentityReference object that identifies the trustee of the access rule.

type
AccessControlType

One of the AccessControlType enumeration values that specifies the access rule type.

access
PropertyAccess

One of the PropertyAccess enumeration values that specifies the property access type.

propertyType
Guid

The schema GUID of the property that this access rule applies to. If this is Empty, then the access rule applies to all property types.

inheritanceType
ActiveDirectorySecurityInheritance

One of the ActiveDirectorySecurityInheritance enumeration values that specifies the inheritance type of the access rule.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

PropertyAccessRule(IdentityReference, AccessControlType, PropertyAccess, Guid, ActiveDirectorySecurityInheritance, Guid)

Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs

Initializes a new instance of the PropertyAccessRule class with the specified identity reference, access control type, property access, property type, Active Directory Domain Services security inheritance, and inherited object type.

public PropertyAccessRule (System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, System.DirectoryServices.PropertyAccess access, Guid propertyType, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType, Guid inheritedObjectType);

Parameters

identity
IdentityReference

An IdentityReference object which identifies the trustee of the access rule.

type
AccessControlType

One of the AccessControlType enumeration values which specifies the access rule type.

access
PropertyAccess

One of the PropertyAccess enumeration values that specifies the property access type.

propertyType
Guid

The schema GUID of the property that this access rule applies to. If this is Empty, then the access rule applies to all property types.

inheritanceType
ActiveDirectorySecurityInheritance

One of the ActiveDirectorySecurityInheritance enumeration values that specifies the inheritance type of the access rule.

inheritedObjectType
Guid

The schema GUID of the child object type that can inherit this access rule.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9