SecurityDescriptorCommandsBase.GetAccess(PSObject) Method

Definition

Gets the access rules of the provided PSObject.

public:
 static System::Security::AccessControl::AuthorizationRuleCollection ^ GetAccess(System::Management::Automation::PSObject ^ instance);
public static System.Security.AccessControl.AuthorizationRuleCollection GetAccess (System.Management.Automation.PSObject instance);
static member GetAccess : System.Management.Automation.PSObject -> System.Security.AccessControl.AuthorizationRuleCollection
Public Shared Function GetAccess (instance As PSObject) As AuthorizationRuleCollection

Parameters

instance
PSObject

The PSObject for which to obtain the access rules.

Returns

The access rules of the provided PSObject.

Applies to