FileSystemProvider.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.
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 Security Descriptor to create. Valid types are "file", "directory," and "container."
- sections
- AccessControlSections
The sections of the security descriptor to create.
Returns
A new ObjectSecurity object of the specified type.