FileSystemProvider.SetSecurityDescriptor(String, ObjectSecurity) Method

Definition

Sets the SecurityDescriptor at the specified path.

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

Parameters

path
String

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

securityDescriptor
ObjectSecurity

The new security descriptor for the item.

Implements

Exceptions

path is null or empty.

securitydescriptor is null.

Applies to