Specifies the script whose value is displayed in the row.
Schema
- Configuration Element
- ViewDefinitions Element
- View Element
- ListControl Element
- ListEntries Element
- ListEntry Element
- ListItems Element
- ListItem Element
- ScriptBlock Element
Syntax
<ScriptBlock>ScriptToEvaluate</ScriptBlock>
Attributes and Elements
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 | Defines the property or script whose value is displayed in a row of the list view. |
Text Value
Specify the script whose value is displayed in the row.
Remarks
When this element is specified, you cannot specify the PropertyName element.
For more information about specifying scripts in a list view, see List View.
Example
The following example shows how to specify the property whose value is displayed.
<ListItem>
<ScriptBlock>$_.ProcessName + ":" $_.Id</ScriptBlock>
</ListItem>
See Also
PropertyName Element for ListItem for ListControl
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
PowerShell