RegistryProvider.NewSecurityDescriptorFromPath 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.
public:
virtual System::Security::AccessControl::ObjectSecurity ^ NewSecurityDescriptorFromPath(System::String ^ path, System::Security::AccessControl::AccessControlSections sections);
public System.Security.AccessControl.ObjectSecurity NewSecurityDescriptorFromPath (string path, System.Security.AccessControl.AccessControlSections sections);
abstract member NewSecurityDescriptorFromPath : string * System.Security.AccessControl.AccessControlSections -> System.Security.AccessControl.ObjectSecurity
override this.NewSecurityDescriptorFromPath : string * System.Security.AccessControl.AccessControlSections -> System.Security.AccessControl.ObjectSecurity
Public Function NewSecurityDescriptorFromPath (path As String, sections As AccessControlSections) As ObjectSecurity
Parameters
- path
- String
The path to the item whose type is to be used when creating a new descriptor.
- sections
- AccessControlSections
Specifies the parts of a security descriptor to create.
Returns
An instance of ObjectSecurity object.
Implements
Remarks
path
and sections
are not used by this method.