適用于 EnumerableExpansion 之之 entryselectedby 的 SelectionCondition 元素
定義必須存在才能展開這個定義之集合物件的條件。
結構描述
- 組態元素
- DefaultSettings 元素
- EnumerableExpansions 元素
- EnumerableExpansion 元素
- 之 entryselectedby 元素
- SelectionCondition 元素
Syntax
<SelectionCondition>
<TypeName>Nameof.NetType</TypeName>
<SelectionSetName>NameofSelectionSet</SelectionSetName>
<PropertyName>.NetTypeProperty</PropertyName>
<ScriptBlock>ScriptToEvaluate</ScriptBlock>
</SelectionCondition>
屬性和項目
下列各節說明屬性、子專案和元素的父元素 SelectionCondition
。 您必須指定單一 PropertyName
或 ScriptBlock
元素。 SelectionSetName
和 TypeName
元素是選擇性的。 您可以指定其中一個元素。
屬性
無。
子元素
元素 | 描述 |
---|---|
EnumerableExpansion 之之 entryselectedby 的 SelectionCondition 的 PropertyName 元素 | 選擇性項目。 指定觸發條件的 .NET 屬性。 |
EnumerableExpansion 之之 entryselectedby 的 SelectionCondition 的 ScriptBlock 元素 | 選擇性項目。 指定觸發條件的腳本。 |
EnumerableExpansion 之之 entryselectedby 的 SelectionCondition SelectionSetName 元素 | 選擇性項目。 指定一組觸發條件的 .NET 類型。 |
EnumerableExpansion 之之 entryselectedby 的 SelectionCondition 的 TypeName 元素 | 選擇性項目。 指定觸發條件的 .NET 型別。 |
父項目
元素 | 描述 |
---|---|
EnumerableExpansion 的之 entryselectedby 元素 | 定義由這個定義擴充的 .NET 集合物件。 |
備註
每個定義都必須定義至少一個型別名稱、選取集或選取條件。
當您定義選取條件時,適用下列需求:
- 選取條件必須指定至少一個屬性名稱或腳本區塊,但不能同時指定兩者。
- 選取條件可以指定任意數目的 .NET 類型或選取集,但不能同時指定兩者。
如需如何使用選取條件的詳細資訊,請參閱 定義 Diplaying 資料的條件。
如需廣泛視圖的其他元件的詳細資訊,請參閱 Wide view。