Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Label Element for GroupBy (Format)

 

Specifies a label that is displayed when a new group is encountered.

<Label>DisplayedLabel</Label>

Attributes and Elements

The following sections describe the attributes, child elements, and parent element of the Label element.

Attributes

None.

Child Elements

None.

Parent Elements

Element

Description

GroupBy Element for View (Format)

Defines how a new group of objects is displayed.

Text Value

Specify the text that is displayed whenever Windows PowerShell encounters a new property or script value.

In addition to the text specified by this element, Windows PowerShell displays the new value that starts the group, and adds a blank line before and after the group.

Example

The following example shows the label for a new group. The displayed label would look similar to this: Service Type: NewValueofProperty

<GroupBy>
  <Label>Service Type</Label>
  <PropertyName>ServiceType</PropertyName>
</GroupBy>

For an example of a complete formatting file that includes this element, see Wide View (GroupBy).

Show: