共用方式為


SecurityDescriptorCmdletProviderIntrinsics.Set(String, ObjectSecurity) Method

Definition

Sets the provided SecurityDescriptor at the specified path.

public:
 System::Collections::ObjectModel::Collection<System::Management::Automation::PSObject ^> ^ Set(System::String ^ path, System::Security::AccessControl::ObjectSecurity ^ sd);
public System.Collections.ObjectModel.Collection<System.Management.Automation.PSObject> Set (string path, System.Security.AccessControl.ObjectSecurity sd);
member this.Set : string * System.Security.AccessControl.ObjectSecurity -> System.Collections.ObjectModel.Collection<System.Management.Automation.PSObject>
Public Function Set (path As String, sd As ObjectSecurity) As Collection(Of PSObject)

Parameters

path
String

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

sd
ObjectSecurity

The new security descriptor to set.

Returns

The SecurityDescriptor(s) set at the specified path.

Applies to