PSPrincipal(PSIdentity, WindowsIdentity) Constructor

Definition

Constructs PSPrincipal using PSIdentity and a WindowsIdentity.

public:
 PSPrincipal(System::Management::Automation::Remoting::PSIdentity ^ identity, System::Security::Principal::WindowsIdentity ^ windowsIdentity);
public PSPrincipal (System.Management.Automation.Remoting.PSIdentity identity, System.Security.Principal.WindowsIdentity windowsIdentity);
new System.Management.Automation.Remoting.PSPrincipal : System.Management.Automation.Remoting.PSIdentity * System.Security.Principal.WindowsIdentity -> System.Management.Automation.Remoting.PSPrincipal
Public Sub New (identity As PSIdentity, windowsIdentity As WindowsIdentity)

Parameters

identity
PSIdentity

An instance of PSIdentity

windowsIdentity
WindowsIdentity

An instance of WindowsIdentity, if psIdentity represents a windows user. This can be null.

Applies to