TableRowEntry 的之 entryselectedby 元素

定義 .NET 型別,這些型別會使用資料表視圖的這個定義或必須存在才能使用此定義的條件。

結構描述

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

Syntax

<EntrySelectedBy>
  <TypeName>Nameof.NetType</TypeName>
  <SelectionSetName>NameofSelectionSet</SelectionSetName>
  <SelectionCondition>...</SelectionCondition>
</EntrySelectedBy>

屬性和項目

下列各節說明屬性、子專案和元素的父元素 EntrySelectedBy

屬性

無。

子元素

元素 描述
適用于 TableControl 之之 entryselectedby 的 SelectionCondition 元素 選擇性項目。

定義必須存在的條件,才能使用此資料表視圖定義。
適用于 TableControl 之之 entryselectedby 的 SelectionSetName 元素 選擇性項目。

指定一組使用此資料表視圖定義的 .NET 類型。
適用于 TableControl 的之 entryselectedby 的 TypeName 元素 選擇性項目。

指定使用此資料表視圖定義的 .NET 類型。

父項目

元素 描述
TableControl 的 TableRowEntry 元素 定義顯示在資料表資料列中的資料。

備註

您必須為數據表視圖定義指定至少一個類型、選取集或選取條件。 您可以使用的子項目數目沒有最大限制。

選取條件是用來定義必須存在才能使用定義的條件,例如,當物件具有特定屬性或特定屬性值或腳本評估為時 true 。 如需選取條件的詳細資訊,請參閱 定義使用視圖專案或專案的條件

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

範例

下列範例 TableRowEntry 會顯示用來顯示 system.string 物件屬性的專案。

<TableRowEntry>
  <EntrySelectedBy>
    <TypeName>System.Diagnostics.Process</TypeName>
  </EntrySelectedBy>
  <TableColumnItems>
    <TableColumnItem>
      <PropertyName>PropertyForFirstColumn</PropertyName>
    </TableColumnItem>
    <TableColumnItem>
      <PropertyName>PropertyForSecondColumn</PropertyName>
    </TableColumnItem>
  </TableColumnItems>
</TableRowEntry>

另請參閱

建立表格檢視

適用于 TableControl 之之 entryselectedby 的 SelectionCondition 元素

適用于 TableControl 之之 entryselectedby 的 SelectionSetName 元素

TableControl 的 TableRowEntry 元素

適用于 TableControl 的之 entryselectedby 的 TypeName 元素

撰寫 PowerShell 格式設定檔案