ViewSelectedBy Element (Format)
Defines the .NET Framework objects that are displayed by the view. Each view must specify at least one .NET Framework object.
Attributes and Elements
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.
Specifies a .NET Framework object that is displayed by the view.
Specifies a set of .NET Framework objects that are displayed by the view.
Defines a view that displays one or more .NET Framework objects.
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 Sets of Objects.
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>