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.

PropertyName Element for GroupBy (Format)

 

Specifies the .NET Framework property that starts a new group whenever its value changes.

<PropertyName>.NetTypeProperty</PropertyName>

Attributes and Elements

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

Attributes

None.

Child Elements

None.

Parent Elements

Element

Description

GroupBy Element for View (Format)

Defines how a group of .NET Framework objects is displayed.

Text Value

Specify the .NET Framework property name.

Windows PowerShell starts a new group whenever the value of this property changes.

When this element is specified, you cannot specify the ScriptBlock element to start a new group.

Example

The following example shows how to start a new group when the value of a property changes.

<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: