Partilhar via


ISecurityDescriptorCmdletProvider.SetSecurityDescriptor Method

Definition

Sets the security descriptor for the item at the specified path.

public:
 void SetSecurityDescriptor(System::String ^ path, System::Security::AccessControl::ObjectSecurity ^ securityDescriptor);
public void SetSecurityDescriptor (string path, System.Security.AccessControl.ObjectSecurity securityDescriptor);
abstract member 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 for which to set the security descriptor.

securityDescriptor
ObjectSecurity

The new security descriptor for the item. This should replace the previously existing security descriptor.

Applies to