SelectionCondition Element for EntrySelectedBy for GroupBy (Format)
Defines a condition that must exist for a control definition to be used. This element is used when defining how a new group of objects is displayed.
<SelectionCondition> <TypeName>Nameof.NetType</TypeName> <SelectionSetName>NameofSelectionSet</SelectionSetName> <PropertyName>.NetTypeProperty</PropertyName> <ScriptBlock>ScriptToEvaluate</ScriptBlock> </SelectionCondition>
Attributes and Elements
The following sections describe attributes, child elements, and the parent element of the SelectionCondition element.
Attributes
None.
Child Elements
Element | Description |
|---|---|
PropertyName Element for SelectionCondition for GroupBy (Format) | Optional element. Specifies a .NET Framework property that triggers the condition. |
ScriptBlock Element for SelectionCondition for GroupBy (Format) | Optional element. Specifies the script that triggers the condition. |
SelectionSetName Element for SelectionCondition for GroupBy (Format) | Optional element. Specifies the set of .NET Framework types that triggers the condition. |
TypeName Element for SelectionCondition for GroupBy (Format) | Optional element. Specifies a .NET Framework type that triggers the condition. |
Parent Elements
Element | Description |
|---|---|
EntrySelectedBy Element for CustomEntry for GroupBy (Format) | Defines the .NET Framework types that use this control definition or the condition that must exist for this definition to be used. |
When you are defining a selection condition, the following requirements apply:
The selection condition must specify a least one property name or a script block, but cannot specify both.
The selection condition can specify any number of .NET Framework types or selection sets, but cannot specify both.
For more information about how to use selection conditions, see Defining Conditions for when Data is Displayed.
PropertyName Element for SelectionCondition for CustomControl for View (Format)
ScriptBlock Element for SelectionCondition for CustomControl for View (Format)
SelectionSetName Element for SelectionCondition for Custom Control for View (Format)
TypeName Element for SelectionCondition for GroupBy (Format)
EntrySelectedBy Element for CustomEntry for GroupBy (Format)
Writing a Windows PowerShell Formatting File