Skip to content

Latest commit

 

History

History
65 lines (44 loc) · 1.96 KB

scriptblock-element-for-itemselectioncondition-for-customcontrol-for-view-format.md

File metadata and controls

65 lines (44 loc) · 1.96 KB
description ms.date ms.topic title
ScriptBlock Element for ItemSelectionCondition for CustomControl for View
08/24/2021
reference
ScriptBlock Element for ItemSelectionCondition for CustomControl for View

ScriptBlock Element for ItemSelectionCondition for CustomControl for View

Specifies the script that triggers the condition. When this script is evaluated to true, the condition is met, and the control is used. This element is used when defining a custom control view.

Schema

  • Configuration Element
  • ViewDefinitions Element
  • View Element
  • CustomControl Element
  • CustomEntries Element
  • CustomEntry Element
  • CustomItem Element
  • ExpressionBinding Element
  • ItemSelectionCondition Element
  • ScriptBlock Element

Syntax

<ScriptBlock>ScriptToEvaluate</ScriptBlock>

Attributes and Elements

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

Attributes

None.

Child Elements

None.

Parent Elements

Element Description
ItemSelectionCondition Element for Expression Binding for CustomControl for View Defines the condition that must exist for this control to be used.

Text Value

Specify the script that is evaluated.

Remarks

If this element is used, you cannot specify the PropertyName element when defining the selection condition.

See Also

PropertyName Element for ItemSelectionCondition for CustomControl for View

ItemSelectionCondition Element for Expression Binding for CustomControl for View

Writing a PowerShell Formatting File