Bearbeiten

Freigeben über


Name Element for View

Specifies the name that is used to identify the view.

Schema

  • Configuration Element
  • ViewDefinitions Element
  • View Element
  • Name Element

Syntax

<Name>ViewName</Name>

Attributes and Elements

The following sections describe attributes, child elements, and the parent element of the Name element. Only one Name element is allowed for each view.

Attributes

None.

Child Elements

None.

Parent Elements

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

Text Value

Specify a unique friendly name for the view. This name can include a reference to the type of the view (such as a table view or list view), which object or set of objects use the view, what command returns the objects, or a combination of these.

Remarks

For more information about the different types of views, see the following topics: Table View, List View, Wide View, and Custom View.

Example

The following example shows a View element that defines a table view for the System.Serviceprocess.Servicecontroller object. The name of the view is "service".

<View>
  <Name>service</Name>
  <ViewSelectedBy>
    <TypeName>System.ServiceProcess.ServiceController</TypeName>
  </ViewSelectedBy>
  <TableControl>...</TableControl>
</View>

See Also

Creating a List View

Creating a Table View

Creating a Wide View

Creating Custom Controls

View Element

Writing a PowerShell Formatting File