다음을 통해 공유


SecurityDescriptorCmdletProviderIntrinsics.NewOfType Method

Definition

Creates a new SecurityDescriptor from the specified provider and of the given type, including only the specified AccessControlSections.

public:
 System::Security::AccessControl::ObjectSecurity ^ NewOfType(System::String ^ providerId, System::String ^ type, System::Security::AccessControl::AccessControlSections includeSections);
public System.Security.AccessControl.ObjectSecurity NewOfType (string providerId, string type, System.Security.AccessControl.AccessControlSections includeSections);
member this.NewOfType : string * string * System.Security.AccessControl.AccessControlSections -> System.Security.AccessControl.ObjectSecurity
Public Function NewOfType (providerId As String, type As String, includeSections As AccessControlSections) As ObjectSecurity

Parameters

providerId
String

The name of the provider.

type
String

The type of the item which corresponds to the security descriptor that we want to create.

includeSections
AccessControlSections

The sections of the security descriptor to include.

Returns

A new SecurityDescriptor of the specified type.

Applies to