Windows Dev Center

PSCmdlet.Host Property

Gets information about the host that is being used by the session where the cmdlet is running.


Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation.dll)

'Usage
Dim instance As PSCmdlet
Dim value As PSHost

value = instance.Host

public PSHost Host { get; }
/** @property */
public PSHost get_Host ()

public function get Host () : PSHost

Property Value

A PSHost object that defines how the pipeline and the host-application interact with each other.

For more information about how the host defines the interaction between the host-application and the pipeline, see Windows PowerShell Runspace.

For more information about cmdlets, see Windows PowerShellCmdlets.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Target Platforms


Show:
© 2015 Microsoft