SelectionCondition Element for EntrySelectedBy for ListControl

Defines the condition that must exist to use this definition of the list view. There is no limit to the number of selection conditions that can be specified for a list definition.

Schema

  • Configuration Element
  • ViewDefinitions Element
  • View Element
  • ListControl Element
  • ListEntries Element
  • ListEntry Element
  • EntrySelectedBy Element
  • SelectionCondition Element

Syntax

<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 EntrySelectedBy for ListEntry Optional element.

Specifies the .NET property that triggers the condition.
ScriptBlock Element for SelectionCondition for EntrySelectedBy for ListEntry Optional element.

Specifies the script that triggers the condition.
SelectionSetName Element for SelectionCondition for EntrySelectedBy for ListEntry Optional element.

Specifies the set of .NET types that trigger the condition.
TypeName Element for SelectionCondition for EntrySelectedBy for ListEntry Optional element.

Specifies a .NET type that triggers the condition.

Parent Elements

Element Description
EntrySelectedBy Element for TableRowEntry Defines the .NET types that use this table entry or the condition that must exist for this entry to be used.

Remarks

lWhen 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 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.

For more information about other components of a list view, see Creating a List View.

See Also

Creating a List View

Defining Conditions for When Data Is Displayed

ListEntry Element

SelectionSetName Element for EntrySelectedBy for ListEntry

TypeName Element for EntrySelectedBy for ListEntry

Writing a PowerShell Formatting File