ListItems Element
Defines the properties and scripts whose values are displayed in the rows of the list view.
- Configuration Element
- ViewDefinitions Element
- View Element
- ListControl Element
- ListEntries Element
- ListEntry Element
- ListItems Element
Syntax
<ListItems>
<ListItem>...</ListItem>
</ListItems>
Attributes and Elements
The following sections describe the attributes, child elements, and parent element of the
ListItems
element. There is no limit to the number of child elements that can be specified. The
order of the child elements defines the order that values are displayed in the list view.
Attributes
None.
Child Elements
Element | Description |
---|---|
ListItem Element for ListControl | Required element. Defines the property or script whose value is displayed by the list view. |
Parent Elements
Element | Description |
---|---|
ListEntry Element for ListControl | Provides a definition of the list view. |
Remarks
For more information about this type of view, see Creating a List View.
Example
This example shows the XML elements that define three rows of the list view.
<ListEntry>
<ListItems>
<ListItem>
<Label>Property1: </Label>
<PropertyName>.NetTypeProperty1</PropertyName>
</ListItem>
<ListItem>
<PropertyName>.NetTypeProperty2</PropertyName>
</ListItem>
<ListItem>
<ScriptBlock>$_.ProcessName + ":" $_.Id</ScriptBlock>
</ListItem>
</ListEntry>
See Also
ListEntry Element for ListControl
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
PowerShell
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示