Windows Dev Center

CmdletProvider.Host Property

Gets the host that is used as the interface between the Windows PowerShell runtime and the user. The Windows PowerShell runtime uses this host to communicate to the user.

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

Dim instance As CmdletProvider
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 represents the host.

For more information about providers, see Windows PowerShell Providers.

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

© 2015 Microsoft