ScriptBlock Element for ListItem for ListControl
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 にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
PowerShell
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示