SecurityDescriptorCmdletProviderIntrinsics.NewFromPath 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 SecurityDescriptor from the item at the specified path, including only the specified AccessControlSections.
public:
System::Security::AccessControl::ObjectSecurity ^ NewFromPath(System::String ^ path, System::Security::AccessControl::AccessControlSections includeSections);
public System.Security.AccessControl.ObjectSecurity NewFromPath (string path, System.Security.AccessControl.AccessControlSections includeSections);
member this.NewFromPath : string * System.Security.AccessControl.AccessControlSections -> System.Security.AccessControl.ObjectSecurity
Public Function NewFromPath (path As String, includeSections As AccessControlSections) As ObjectSecurity
Parameters
- path
- String
The path of the item to retrieve. It may be a drive or provider-qualified path and may include glob characters.
- includeSections
- AccessControlSections
The sections of the security descriptor to include.
Returns
The SecurityDescriptor(s) at the specified path.