[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Represents a localizable name and description for an element or an alert message.

Schema Hierarchy

ManagementPack
  LanguagePacks
    LanguagePack
      DisplayStrings
        DisplayString

Syntax

Xml
<DisplayString ElementID=”ElementID” SubElementID=”ElementID”>
   <Name>Element name</Name>   <Description>Element description</Description>
</DisplayString>

Attributes and Elements

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

Attributes

Attribute Description

ElementID

Required attribute. The ID of the element or string resource to which the localizable name and description are associated.

SubElementID

Required attribute only when the display string is applied to a sub-element of the element represented by the ElementID attribute, such as the Property (ClassType) element of the ClassType element.

Child Elements

Element Description

Name (DisplayString)

Required element. Represents the display name of the element.

Description (DisplayString)

Optional element. Represents the display description of the element.

Parent Elements

Element Description

DisplayStrings

Contains all localizable display strings in the management pack.

Remarks

To provide friendly display strings for all elements and alert messages in your management pack, you must define a display string element for each language your management supports.

Display strings can be associated with any management pack element ID (for example, the ID of a ClassType element, Rule element, and so on).

Example

The following XML sample illustrates how to define a display string for a header in a View that implements a GridViewType view type.

  Copy Code

<StringResource ID="Microsoft.EnterpriseManagement.ServiceManager.UI.Administration.View.ManagementPack.Header_Description" />
…
<LanguagePack ID="ENU" IsDefault="true">
 <DisplayStrings>
  <DisplayString ElementID="Microsoft.EnterpriseManagement.ServiceManager.UI.Administration.View.ManagementPack.Header_Description">
   <Name>Description</Name>
   <Description>Description</Description>
  </DisplayString>
 </DisplayStrings>
</LanguagePack>
…
<View ID="Microsoft.EnterpriseManagement.ServiceManager.UI.Administration.View.ManagementPack" Target="System!System.Entity" Enabled="true" TypeID="Console!GridViewType" Accessibility="Public">
  <Category>NotUsed</Category>
  ...
  <Presentation>
	<Columns>
	<mux:ColumnCollection xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mux="http://schemas.microsoft.com/SystemCenter/Common/UI/Views/GridView" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:data="clr-namespace:Microsoft.EnterpriseManagement.UI.SdkDataAccess.Common;assembly=Microsoft.EnterpriseManagement.UI.SdkDataAccess" xmlns:datebinding="clr-namespace:Microsoft.EnterpriseManagement.UI.SdkDataAccess.Common;assembly=Microsoft.EnterpriseManagement.UI.SdkDataAccess">
		<mux:Column Name="name" Width="300" DisplayName="Header_Name" Property="DisplayName" DataType="s:String">
		<mux:Column.CellTemplate>
			<DataTemplate>
			<DockPanel ToolTip="{Binding DisplayName}">
				<Image Source="{Binding Path=Image, Converter={x:Static data:ImageConverter.Default}}" Width="16" Height="16" RenderOptions.BitmapScalingMode="NearestNeighbor" />
				<TextBlock AutomationProperties.Name="{Binding DisplayName}" Text="{Binding DisplayName}" VerticalAlignment="Center" Margin="5,0,0,0" />
			</DockPanel>
			</DataTemplate>
		</mux:Column.CellTemplate>
		</mux:Column>
		<mux:Column Name="description" DisplayMemberBinding="{Binding Path=Description}" Width="300" DisplayName="Header_Description" Property="Description" DataType="s:String" />
		<mux:Column Name="sealed" Width="75" DisplayName="Header_Sealed" Property="Sealed" DataType="s:String">
		<mux:Column.CellTemplate>
			<DataTemplate>
			<DockPanel>
				<TextBlock Text="{Binding Path=Sealed, Converter={x:Static data:BooleanConverter.Default}}"/>
			</DockPanel>
			</DataTemplate>
		</mux:Column.CellTemplate>
		</mux:Column>
		<mux:Column Name="version" DisplayMemberBinding="{Binding Path=Version}" Width="75" DisplayName="Header_Version" Property="Version" DataType="s:String" />
		<mux:Column Name="timeCreated" DisplayMemberBinding="{datebinding:DateBinding Path=TimeCreated}" Width="300" DisplayName="Header_Created" Property="TimeCreated" DataType="s:DateTime" />
		<mux:Column Name="lastModified" DisplayMemberBinding="{datebinding:DateBinding Path=LastModified}" Width="120" DisplayName="Header_Last_Modified" Property="LastModified" DataType="s:DateTime" />
	</mux:ColumnCollection>
	</Columns>
	<ViewStrings>
	<ViewString ID="Header_Name">$MPElement[Name="Microsoft.EnterpriseManagement.ServiceManager.UI.Administration.View.ManagementPack.Header_Name"]$</ViewString>
	<ViewString ID="Header_Description">$MPElement[Name="Microsoft.EnterpriseManagement.ServiceManager.UI.Administration.View.ManagementPack.Header_Description"]$</ViewString>
	<ViewString ID="Header_Sealed">$MPElement[Name="Microsoft.EnterpriseManagement.ServiceManager.UI.Administration.View.ManagementPack.Header_Sealed"]$</ViewString>
	<ViewString ID="Header_Version">$MPElement[Name="Microsoft.EnterpriseManagement.ServiceManager.UI.Administration.View.ManagementPack.Header_Version"]$</ViewString>
	<ViewString ID="Header_Created">$MPElement[Name="Microsoft.EnterpriseManagement.ServiceManager.UI.Administration.View.ManagementPack.Header_Created"]$</ViewString>
	<ViewString ID="Header_Last_Modified">$MPElement[Name="Microsoft.EnterpriseManagement.ServiceManager.UI.Administration.View.ManagementPack.Header_Last_Modified"]$</ViewString>
	</ViewStrings>
  </Presentation>
</View>

See Also