Partager via


FileSystemProvider.GetSecurityDescriptor Method

Definition

Gets the SecurityDescriptor at the specified path, including only the specified AccessControlSections.

public:
 virtual void GetSecurityDescriptor(System::String ^ path, System::Security::AccessControl::AccessControlSections sections);
public void GetSecurityDescriptor (string path, System.Security.AccessControl.AccessControlSections sections);
override this.GetSecurityDescriptor : string * System.Security.AccessControl.AccessControlSections -> unit
abstract member GetSecurityDescriptor : string * System.Security.AccessControl.AccessControlSections -> unit
override this.GetSecurityDescriptor : string * System.Security.AccessControl.AccessControlSections -> unit
Public Sub GetSecurityDescriptor (path As String, sections As AccessControlSections)

Parameters

path
String

The path of the item to retrieve. It may be a drive or provider-qualified path and may include. glob characters.

sections
AccessControlSections

The sections of the security descriptor to include.

Implements

Exceptions

path is null or empty. path doesn't exist sections is not valid.

Applies to