Прочетете на английски Редактиране

Споделяне чрез


CreateChildAccessRule Constructors

Definition

Initializes a new instance of the CreateChildAccessRule class.

Overloads

CreateChildAccessRule(IdentityReference, AccessControlType)

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

CreateChildAccessRule(IdentityReference, AccessControlType, ActiveDirectorySecurityInheritance)

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

CreateChildAccessRule(IdentityReference, AccessControlType, Guid)

Initializes a new instance of the CreateChildAccessRule class with the specified identity reference, access control type, and child object type.

CreateChildAccessRule(IdentityReference, AccessControlType, ActiveDirectorySecurityInheritance, Guid)

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

CreateChildAccessRule(IdentityReference, AccessControlType, Guid, ActiveDirectorySecurityInheritance)

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

CreateChildAccessRule(IdentityReference, AccessControlType, Guid, ActiveDirectorySecurityInheritance, Guid)

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

CreateChildAccessRule(IdentityReference, AccessControlType)

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

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

C#
public CreateChildAccessRule(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type);

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.

Remarks

If you use this constructor, it creates a create child access rule that applies to all child types.

Applies to

.NET 10 (package-provided) и други версии
Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (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, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

CreateChildAccessRule(IdentityReference, AccessControlType, ActiveDirectorySecurityInheritance)

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

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

C#
public CreateChildAccessRule(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, 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.

inheritanceType
ActiveDirectorySecurityInheritance

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

Remarks

If you use this constructor, it creates a create child access rule that applies to all child types.

Applies to

.NET 10 (package-provided) и други версии
Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (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, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

CreateChildAccessRule(IdentityReference, AccessControlType, Guid)

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

Initializes a new instance of the CreateChildAccessRule class with the specified identity reference, access control type, and child object type.

C#
public CreateChildAccessRule(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, Guid childType);

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.

childType
Guid

The schema GUID of the type of child objects that can or cannot be created. If this is Empty, then the access rule applies to all child types.

Applies to

.NET 10 (package-provided) и други версии
Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (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, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

CreateChildAccessRule(IdentityReference, AccessControlType, ActiveDirectorySecurityInheritance, Guid)

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

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

C#
public CreateChildAccessRule(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, 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.

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

If you use this constructor, it creates a create child access rule that applies to all child types.

Applies to

.NET 10 (package-provided) и други версии
Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (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, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

CreateChildAccessRule(IdentityReference, AccessControlType, Guid, ActiveDirectorySecurityInheritance)

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

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

C#
public CreateChildAccessRule(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, Guid childType, 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.

childType
Guid

The schema GUID of the type of child objects that can or cannot be created. If this is Empty, then the access rule applies to all child types.

inheritanceType
ActiveDirectorySecurityInheritance

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

Applies to

.NET 10 (package-provided) и други версии
Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (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, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

CreateChildAccessRule(IdentityReference, AccessControlType, Guid, ActiveDirectorySecurityInheritance, Guid)

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

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

C#
public CreateChildAccessRule(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.AccessControlType type, Guid childType, 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.

childType
Guid

The schema GUID of the type of child objects that can or cannot be created. If this is Empty, then the access rule applies to all child 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 10 (package-provided) и други версии
Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (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, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10