Expand Minimize

ViewSelectedBy Element (Format)

Defines the .NET Framework objects that are displayed by the view. Each view must specify at least one .NET Framework object.

<ViewSelectedBy>
  <TypeName>Nameof.NetType</TypeName>
  <SelectionSetName>SelectionSet</SelectionSetName>
</ViewSelectedBy>

The following sections describe the attributes, child elements, and parent element of the ViewSelectedBy element. This element must contain at least one TypeName or SelectionSetName child element. There is no limit to the number of child elements that can be specified nor is their order significant.

Attributes

None.

Child Elements

 

Element Description

TypeName Element for ViewSelectedBy (Format)

Optional element.

Specifies a .NET Framework object that is displayed by the view.

SelectionSetName Element for ViewSelectedBy (Format)

Optional element.

Specifies a set of .NET Framework objects that are displayed by the view.

Parent Elements

 

Element Description

View Element (Format)

Defines a view that displays one or more .NET Framework objects.

For more information about how this element is used in different views, see Creating a Table View, Creating a List View, Creating a Wide View, and Creating Custom Controls.

The SelectionSetName element is used when the formatting file defines a set of objects that are displayed by multiple views. For more information about how selection sets are defined and referenced, see Defining Selection Sets.

The following example shows how to specify the ServiceController object for a list view. The same schema is used for table, wide, and custom views.

<View>
  <Name>System.ServiceProcess.ServiceController</Name>
  <ViewSelectedBy>
    <TypeName>System.ServiceProcess.ServiceController</TypeName>
  </ViewSelectedBy>
  <ListControl>...</ListControl>
</View>



Show:
© 2014 Microsoft