適用于 WideControl 之之 entryselectedby 的 SelectionCondition 元素

定義必須存在的條件,才能使用這個定義。 可以針對寬專案定義指定的選取條件數目沒有任何限制。

結構描述

  • 組態元素
  • ViewDefinitions 元素
  • View 元素
  • WideControl 元素
  • WideEntries 元素
  • WideEntry 元素
  • 之 entryselectedby 元素
  • SelectionCondition 元素

Syntax

<SelectionCondition>
  <TypeName>Nameof.NetType</TypeName>
  <SelectionSetName>NameofSelectionSet</SelectionSetName>
  <PropertyName>.NetTypeProperty</PropertyName>
  <ScriptBlock>ScriptToEvaluate</ScriptBlock>
</SelectionCondition>

屬性和項目

下列各節說明屬性、子專案和元素的父元素 SelectionCondition 。 您必須指定單一 PropertyNameScriptBlock 元素。 SelectionSetNameTypeName 元素是選擇性的。 您可以指定其中一個元素。

屬性

無。

子元素

元素 描述
WideEntry 之之 entryselectedby 的 SelectionCondition 的 PropertyName 元素 選擇性項目。

指定觸發條件的 .NET 屬性。
WideEntry 之之 entryselectedby 的 SelectionCondition 的 ScriptBlock 元素 選擇性項目。

指定觸發條件的腳本區塊。
WideEntry 之之 entryselectedby 的 SelectionCondition SelectionSetName 元素 選擇性項目。

指定一組觸發條件的 .NET 類型。
WideEntry 之之 entryselectedby 的 SelectionCondition 的 TypeName 元素 選擇性項目。

指定觸發條件的 .NET 型別。

父項目

元素 描述
WideEntry 的之 entryselectedby 元素 定義使用此寬專案的 .NET 型別,或必須存在才能使用此專案的條件。

備註

每個寬專案都必須定義至少一個類型名稱、選取集或選取條件。

當您定義選取條件時,適用下列需求:

  • 選取條件必須指定至少一個屬性名稱或腳本區塊,但不能同時指定兩者。
  • 選取條件可以指定任意數目的 .NET 類型或選取集,但不能同時指定兩者。

如需如何使用選取條件的詳細資訊,請參閱 定義使用視圖專案或專案的條件

如需更多有關廣泛視圖的元件的詳細資訊,請參閱 建立廣泛的觀點

另請參閱

建立寬型檢視

定義顯示資料的條件

WideEntry 的之 entryselectedby 元素

WideEntry 之之 entryselectedby 的 SelectionCondition 的 PropertyName 元素

WideEntry 之之 entryselectedby 的 SelectionCondition 的 ScriptBlock 元素

WideEntry 之之 entryselectedby 的 SelectionCondition SelectionSetName 元素

WideEntry 之之 entryselectedby 的 SelectionCondition 的 TypeName 元素

撰寫 PowerShell 格式設定檔案