Expand Minimize

ScriptBlock Element for ListItem for ListControl (Format)

Specifies the script whose value is displayed in the row.

<ScriptBlock>ScriptToEvaluate</ScriptBlock>

The following sections describe the attributes, child elements, and the parent element of the ScriptBlock element.

Attributes

None.

Child Elements

None.

Parent Elements

 

Element Description

ListItem Element for ListItems for ListControl (Format)

Defines the property or script whose value is displayed in a row of the list view.

Specify the script whose value is displayed in the row.

When this element is specified, you cannot specify the PropertyName element.

For more information about specifying scripts in a list view, see Creating a List View.

The following example shows how to specify the property whose value is displayed.

<ListItem>
  <ScriptBlock>$_.ProcessName + ":" $_.Id</ScriptBlock>
</ListItem>



Show:
© 2014 Microsoft