共用方式為


PSControl Class

Definition

Defines a control for the formatting types defined by PowerShell.

public ref class PSControl abstract
public abstract class PSControl
type PSControl = class
Public MustInherit Class PSControl
Inheritance
PSControl
Derived

Constructors

PSControl()

Properties

GroupBy

Each control can group items and specify a header for the group. You can group by same property value, or result of evaluating a script block.

OutOfBand

When the "shape" of formatting has been determined by previous objects, sometimes you want objects of different types to continue using that shape (table, list, or whatever) even if they specify their own views, and sometimes you want your view to take over. When OutOfBand is true, the view will apply regardless of previous objects that may have selected the shape.

Applies to