PSPrincipal(PSIdentity, WindowsIdentity) Constructor
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.
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.