ISecurityDescriptorCmdletProvider.NewSecurityDescriptorOfType Method
Definition
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.
Creates a new empty security descriptor of the specified type. This method is used as a convenience function for consumers of your provider.
public:
System::Security::AccessControl::ObjectSecurity ^ NewSecurityDescriptorOfType(System::String ^ type, System::Security::AccessControl::AccessControlSections includeSections);
public System.Security.AccessControl.ObjectSecurity NewSecurityDescriptorOfType (string type, System.Security.AccessControl.AccessControlSections includeSections);
abstract member NewSecurityDescriptorOfType : string * System.Security.AccessControl.AccessControlSections -> System.Security.AccessControl.ObjectSecurity
Public Function NewSecurityDescriptorOfType (type As String, includeSections As AccessControlSections) As ObjectSecurity
Parameters
- type
- String
The type of Security Descriptor to create. Your provider should understand a string representation for each of the types of SecurityDescriptors that it supports. For example, the File System provider performs a case-insensitive comparison against "file" for a FileSecurity descriptor, and "directory" or "container" for a DirectorySecurity descriptor.
- includeSections
- AccessControlSections
The sections of the security descriptor to create.
Returns
A new ObjectSecurity object of the specified type.