Elemento ItemSelectionCondition para ExpressionBinding for CustomControl (formato)ItemSelectionCondition Element for ExpressionBinding for CustomControl (Format)

Define la condición que debe existir para que se utilice este control.Defines the condition that must exist for this control to be used. No hay ningún límite en el número de condiciones de selección que se pueden especificar para un elemento de control.There is no limit to the number of selection conditions that can be specified for a control item. Este elemento se utiliza al definir una vista de control personalizada.This element is used when defining a custom control view.

Elemento Configuration (Format) elemento ViewDefinitions (Format) elemento View (Format) elemento CustomControl (Format) elemento CustomEntries para CustomControl for View (Format) elemento CustomEntry para CustomEntries for View (Format) CustomItem Element for CustomEntry for View (Format) ExpressionBinding elemento for CustomItem for CustomControl for View (Format) ItemSelectionCondition para el enlace de expresiones para CustomControl para View (Format)Configuration Element (Format) ViewDefinitions Element (Format) View Element (Format) CustomControl Element (Format) CustomEntries Element for CustomControl for View (Format) CustomEntry Element for CustomEntries for View (Format) CustomItem Element for CustomEntry for View (Format) ExpressionBinding Element for CustomItem for CustomControl for View (Format) ItemSelectionCondition Element for Expression Binding for CustomControl for View (Format)

SintaxisSyntax

<ItemSelectionCondition>
  <PropertyName>.NetTypeProperty</PropertyName>
  <ScriptBlock>ScriptToEvaluate</ScriptBlock>
</ItemSelectionCondition>

Atributos y elementosAttributes and Elements

En las secciones siguientes se describen los atributos, los elementos secundarios y el elemento primario del ItemSelectionCondition elemento.The following sections describe attributes, child elements, and the parent element of the ItemSelectionCondition element.

AtributosAttributes

Ninguno.None.

Elementos secundariosChild Elements

ElementoElement DescripciónDescription
Elemento PropertyName para ItemSelectionCondition para CustomControl para View (Format)PropertyName Element for ItemSelectionCondition for CustomControl for View (Format Elemento opcional.Optional element.

Especifica la propiedad de .NET que desencadena la condición.Specifies the .NET property that triggers the condition.
Elemento ScriptBlock para ItemSelectionCondition for CustomControl for View (formato)ScriptBlock Element for ItemSelectionCondition for CustomControl for View (Format) Elemento opcional.Optional element.

Especifica el script que desencadena la condición.Specifies the script that triggers the condition.

Elementos primariosParent Elements

ElementoElement DescripciónDescription
Elemento ExpressionBinding para CustomItem for CustomControl for View (formato)ExpressionBinding Element for CustomItem for CustomControl for View (Format) Define los datos que muestra el control.Defines the data that is displayed by the control.

ObservacionesRemarks

Puede especificar un nombre de propiedad o un script para esta condición, pero no puede especificar ambos.You can specify one property name or a script for this condition but cannot specify both.

Consulte tambiénSee Also

Escritura de un archivo de formato de PowerShellWriting a PowerShell Formatting File

Elemento ExpressionBinding para CustomItem for CustomControl for View (formato)ExpressionBinding Element for CustomItem for CustomControl for View (Format)