PSHost.UI Property

Definition

Gets the hosting application's implementation of the PSHostUserInterface abstract base class. A host that does not want to support user interaction should return null.

public:
 abstract property System::Management::Automation::Host::PSHostUserInterface ^ UI { System::Management::Automation::Host::PSHostUserInterface ^ get(); };
public abstract System.Management.Automation.Host.PSHostUserInterface UI { get; }
member this.UI : System.Management.Automation.Host.PSHostUserInterface
Public MustOverride ReadOnly Property UI As PSHostUserInterface

Property Value

A reference to an instance of the hosting application's implementation of a class derived from PSHostUserInterface, or null to indicate that user interaction is not supported.

Remarks

The implementation of this routine should return an instance of the appropriate implementation of PSHostUserInterface for this application. As an alternative, for simple scenarios, just returning null is sufficient.

Applies to