共用方式為


GroupBy 的 Label 元素

指定當遇到新群組時所顯示的標籤。

結構描述

  • 組態元素
  • ViewDefinitions 元素
  • View 元素
  • GroupBy 元素
  • Label 元素

Syntax

<Label>DisplayedLabel</Label>

屬性和項目

下列各節描述專案的屬性、子項目和父元素 Label

屬性

無。

子元素

無。

父項目

元素 描述
View 的 GroupBy 元素 定義如何顯示新的物件群組。

文字值

指定每當 Windows PowerShell 遇到新的屬性或腳本值時,所顯示的文字。

備註

除了這個專案所指定的文字之外,Windows PowerShell 會顯示啟動群組的新值,並在群組前後加入空白行。

範例

下列範例顯示新群組的標籤。 顯示的標籤看起來會像這樣: Service Type: NewValueofProperty

<GroupBy>
  <Label>Service Type</Label>
  <PropertyName>ServiceType</PropertyName>
</GroupBy>

如需包含此專案之完整格式化檔案的範例,請參閱 Wide View (GroupBy)

另請參閱

View 的 GroupBy 元素

撰寫 PowerShell 格式設定檔案