Elemento SelectionCondition para EntrySelectedBy for WideControl (formato)SelectionCondition Element for EntrySelectedBy for WideControl (Format)
Define la condición que debe existir para que se use esta definición.Defines the condition that must exist for this definition to be used. No hay ningún límite en el número de condiciones de selección que se pueden especificar para una definición de entrada ancha.There is no limit to the number of selection conditions that can be specified for a wide entry definition.
Elemento Configuration (Format) elemento ViewDefinitions (Format) elemento View (Format) elemento WideControl (Format) elemento WideEntries (Format) elemento WideEntry (Format) EntrySelectedBy Element for WideEntry (Format) SelectionCondition Element for EntrySelectedBy for WideEntry (Format)Configuration Element (Format) ViewDefinitions Element (Format) View Element (Format) WideControl Element (Format) WideEntries Element (Format) WideEntry Element (Format) EntrySelectedBy Element for WideEntry (Format) SelectionCondition Element for EntrySelectedBy for WideEntry (Format)
SintaxisSyntax
<SelectionCondition>
<TypeName>Nameof.NetType</TypeName>
<SelectionSetName>NameofSelectionSet</SelectionSetName>
<PropertyName>.NetTypeProperty</PropertyName>
<ScriptBlock>ScriptToEvaluate</ScriptBlock>
</SelectionCondition>
Atributos y elementosAttributes and Elements
En las secciones siguientes se describen los atributos, los elementos secundarios y el elemento primario del SelectionCondition
elemento.The following sections describe attributes, child elements, and the parent element of the SelectionCondition
element. Debe especificar un único PropertyName
elemento o ScriptBlock
.You must specify a single PropertyName
or ScriptBlock
element. Los SelectionSetName
TypeName
elementos y son opcionales.The SelectionSetName
and TypeName
elements are optional. Puede especificar uno de los dos elementos.You can specify one of either element.
AtributosAttributes
Ninguno.None.
Elementos secundariosChild Elements
Elementos primariosParent Elements
ElementoElement | DescripciónDescription |
---|---|
Elemento EntrySelectedBy para WideEntry (formato)EntrySelectedBy Element for WideEntry (Format) | Define los tipos de .NET que usan esta entrada ancha o la condición que debe existir para que se use esta entrada.Defines the .NET types that use this wide entry or the condition that must exist for this entry to be used. |
ObservacionesRemarks
Cada entrada ancha debe tener al menos un nombre de tipo, conjunto de selección o condición de selección definida.Each wide entry must have at least one type name, selection set, or selection condition defined.
Cuando se define una condición de selección, se aplican los requisitos siguientes:When you are defining a selection condition, the following requirements apply:
La condición de selección debe especificar al menos un nombre de propiedad o un bloque de script, pero no puede especificar ambos.The selection condition must specify a least one property name or a script block, but cannot specify both.
La condición de selección puede especificar cualquier número de tipos de .NET o conjuntos de selección, pero no puede especificar ambos.The selection condition can specify any number of .NET types or selection sets, but cannot specify both.
Para obtener más información sobre cómo usar las condiciones de selección, vea definir condiciones para cuando se utiliza una entrada de vista o un elemento.For more information about how to use selection conditions, see Defining Conditions for when a View Entry or Item is Used.
Para obtener más información sobre otros componentes de una vista amplia, vea crear una vista amplia.For more information about other components of a wide view, see Creating a Wide View.
Consulte tambiénSee Also
Creación de una vista ampliaCreating a Wide View
Elemento EntrySelectedBy para WideEntry (formato)EntrySelectedBy Element for WideEntry (Format)
Escritura de un archivo de formato de PowerShellWriting a PowerShell Formatting File