Szerkesztés

Megosztás a következőn keresztül:


WideItem Element for WideControl

Defines the property or script whose value is displayed.

Schema

  • Configuration Element
  • ViewDefinitions Element
  • View Element
  • WideControl Element
  • WideEntries Element
  • WideEntry Element
  • WideItem Element

Syntax

<WideItem>
  <PropertyName>.NetTypeProperty</PropertyName>
  <ScriptBlock>ScriptToExecute</ScriptBlock>
  <FormatString>FormatPattern</FormatString>
</WideItem>

Attributes and Elements

The following sections describe the attributes, child elements, and the parent element of the WideItem element. The FormatString element is optional. However, you must specify a PropertyName or ScriptBlock element, but you cannot specify both.

Attributes

None.

Child Elements

Element Description
FormatString Element for WideItem for WideControl Optional element.

Specifies a format pattern that defines how the property or script value is displayed in the view.
PropertyName Element for WideItem Specifies the property of the object whose value is displayed in the wide view.
ScriptBlock Element for WideItem Specifies the script whose value is displayed in the wide view.

Parent Elements

Element Description
WideEntry Element Provides a definition of the wide view.

Remarks

For more information about the components of a wide view, see Wide View.

Example

The following example shows a WideEntry element that defines a single WideItem element. The WideItem element defines the property or script whose value is displayed in the view.

<WideEntry>
  <WideItem>
    <PropertyName>ProcessName</PropertyName>
  </WideItem>
</WideEntry>

For a complete example of a wide view, see Wide View (Basic).

See Also

FormatString Element for WideItem for WideControl

PropertyName Element for WideItem

ScriptBlock Element for WideItem

WideEntry Element

Writing a PowerShell Formatting File