ISecurityDescriptorCmdletProvider.SetSecurityDescriptor 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.
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.