RegistryProvider.NewSecurityDescriptorOfType Method

Definition

Creates a new empty security descriptor.

public:
 virtual System::Security::AccessControl::ObjectSecurity ^ NewSecurityDescriptorOfType(System::String ^ type, System::Security::AccessControl::AccessControlSections sections);
public System.Security.AccessControl.ObjectSecurity NewSecurityDescriptorOfType (string type, System.Security.AccessControl.AccessControlSections sections);
abstract member NewSecurityDescriptorOfType : string * System.Security.AccessControl.AccessControlSections -> System.Security.AccessControl.ObjectSecurity
override this.NewSecurityDescriptorOfType : string * System.Security.AccessControl.AccessControlSections -> System.Security.AccessControl.ObjectSecurity
Public Function NewSecurityDescriptorOfType (type As String, sections As AccessControlSections) As ObjectSecurity

Parameters

type
String

The type of item associated with this security descriptor

sections
AccessControlSections

Specifies the parts of a security descriptor to create.

Returns

An instance of ObjectSecurity object.

Implements

Applies to