適用于 TableControl 之之 entryselectedby 的 SelectionCondition 元素

定義必須存在的條件,才能用於此資料表視圖的定義。 可以針對資料表定義指定的選取條件數目沒有任何限制。

結構描述

  • 組態元素
  • ViewDefinitions 元素
  • View 元素
  • TableControl 元素
  • TableRowEntries 元素
  • TableRowEntry 元素
  • 之 entryselectedby 元素
  • SelectionCondition 元素

Syntax

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

屬性和項目

下列各節說明屬性、子專案,以及 SelectionCondition 專案的父元素。

屬性

無。

子元素

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

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

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

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

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

父項目

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

備註

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

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

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

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

如需有關資料表視圖元件的詳細資訊,請參閱 建立資料表視圖

另請參閱

建立表格檢視

定義顯示資料的條件

之 entryselectedby 元素

TableRowEntry 之之 entryselectedby 的 SelectionCondition 的 PropertyName 元素

TableRowEntry 之之 entryselectedby 的 SelectionCondition 的 ScriptBlock 元素

TableRowEntry 之之 entryselectedby 的 SelectionCondition SelectionSetName 元素

TableRowEntry 之之 entryselectedby 的 SelectionCondition 的 TypeName 元素

寫入 Windows PowerShell 格式和類型檔案