PropertyAccessRule Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the PropertyAccessRule class.
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. |
- 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);
public PropertyAccessRule (System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, System.DirectoryServices.PropertyAccess access);
new System.DirectoryServices.PropertyAccessRule : System.Security.Principal.IdentityReference * System.Security.AccessControl.AccessControlType * System.DirectoryServices.PropertyAccess -> System.DirectoryServices.PropertyAccessRule
Public Sub New (identity As IdentityReference, type As AccessControlType, access As PropertyAccess)
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);
public PropertyAccessRule (System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, System.DirectoryServices.PropertyAccess access, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType);
new System.DirectoryServices.PropertyAccessRule : System.Security.Principal.IdentityReference * System.Security.AccessControl.AccessControlType * System.DirectoryServices.PropertyAccess * System.DirectoryServices.ActiveDirectorySecurityInheritance -> System.DirectoryServices.PropertyAccessRule
Public Sub New (identity As IdentityReference, type As AccessControlType, access As PropertyAccess, inheritanceType As ActiveDirectorySecurityInheritance)
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 |
- 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);
public PropertyAccessRule (System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, System.DirectoryServices.PropertyAccess access, Guid propertyType);
new System.DirectoryServices.PropertyAccessRule : System.Security.Principal.IdentityReference * System.Security.AccessControl.AccessControlType * System.DirectoryServices.PropertyAccess * Guid -> System.DirectoryServices.PropertyAccessRule
Public Sub New (identity As IdentityReference, type As AccessControlType, access As PropertyAccess, propertyType As Guid)
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);
public PropertyAccessRule (System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, System.DirectoryServices.PropertyAccess access, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType, Guid inheritedObjectType);
new System.DirectoryServices.PropertyAccessRule : System.Security.Principal.IdentityReference * System.Security.AccessControl.AccessControlType * System.DirectoryServices.PropertyAccess * System.DirectoryServices.ActiveDirectorySecurityInheritance * Guid -> System.DirectoryServices.PropertyAccessRule
Public Sub New (identity As IdentityReference, type As AccessControlType, access As PropertyAccess, inheritanceType As ActiveDirectorySecurityInheritance, inheritedObjectType As Guid)
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);
public PropertyAccessRule (System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, System.DirectoryServices.PropertyAccess access, Guid propertyType, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType);
new System.DirectoryServices.PropertyAccessRule : System.Security.Principal.IdentityReference * System.Security.AccessControl.AccessControlType * System.DirectoryServices.PropertyAccess * Guid * System.DirectoryServices.ActiveDirectorySecurityInheritance -> System.DirectoryServices.PropertyAccessRule
Public Sub New (identity As IdentityReference, type As AccessControlType, access As PropertyAccess, propertyType As Guid, inheritanceType As ActiveDirectorySecurityInheritance)
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);
public PropertyAccessRule (System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, System.DirectoryServices.PropertyAccess access, Guid propertyType, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType, Guid inheritedObjectType);
new System.DirectoryServices.PropertyAccessRule : System.Security.Principal.IdentityReference * System.Security.AccessControl.AccessControlType * System.DirectoryServices.PropertyAccess * Guid * System.DirectoryServices.ActiveDirectorySecurityInheritance * Guid -> System.DirectoryServices.PropertyAccessRule
Public Sub New (identity As IdentityReference, type As AccessControlType, access As PropertyAccess, propertyType As Guid, inheritanceType As ActiveDirectorySecurityInheritance, inheritedObjectType As Guid)
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 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: