編集

次の方法で共有


ViewDefinitions Element

Defines the views used to display .NET objects. These views can display the properties and script values of an object in a table format, list format, wide format, and custom control format.

Schema

  • Configuration Element
  • ViewDefinitions

Syntax


<ViewDefinitions>
  <View>...</View>
</ViewDefinitions>

Attributes and Elements

The following sections describe the attributes, child elements, and parent element of the ViewDefinitions element. There is no limit to the number of views that can be defined in a formatting file, and they can be added in any order.

Attributes

None.

Child Elements

Element Description
View Element Defines a view that is used to display one or more .NET objects.

Parent Elements

Element Description
Configuration Element Represents the top-level element of a formatting file.

Remarks

For more information about the components of the different types of views, see the following topics:

Example

This example shows a ViewDefinitions element that contains the parent elements for a table view and a list view.

<Configuration>
  <ViewDefinitions>
    <View>
      <TableControl>...</TableControl>
    </View>
    <View>
      <ListControl>...</ListControl>
    </View>
  </ViewDefinitions>
</Configuration>

See Also

Configuration Element

View Element

Creating a Table View

Creating a List View

Creating a Wide View

Custom Controls

Writing a PowerShell Formatting File