適用于 ListControl 之之 entryselectedby 的 SelectionSetName 元素

指定清單專案的一組 .NET 物件。 可以針對專案指定的選取範圍數目沒有任何限制。

結構描述

  • 組態元素
  • ViewDefinitions 元素
  • View 元素
  • ListControl 元素
  • ListEntries 元素
  • ListEntry 元素
  • 之 entryselectedby 元素
  • SelectionSetName 元素

Syntax

<SelectionSetName>NameofSelectionSet</SelectionSetName>

屬性和項目

下列各節描述專案的屬性、子項目和父元素 SelectionSetName

屬性

無。

子元素

無。

父項目

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

文字值

指定選項群組的名稱。

備註

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

當您想要定義多個視圖中使用的一組物件時,通常會使用選取集。 例如,您可能會想要為相同的物件集建立資料表視圖和清單視圖。 如需定義選擇集的詳細資訊,請參閱 定義視圖的物件集

如需清單視圖元件的詳細資訊,請參閱 建立清單視圖

範例

下列範例示範如何為清單視圖的專案指定選取集。

<ListEntry>
  <EntrySelectedBy>
    <SelectionSetName>NameofSelectionSet</SelectionSetName>
  </EntrySelectedBy>
  <ListItems>...</ListItems>
</ListEntry>

另請參閱

建立清單檢視

ListEntry 的之 entryselectedby 元素

撰寫 PowerShell 格式設定檔案