IconID (microsoft-windows-stobject-custompowerapplication3-IconID) IconID (microsoft-windows-stobject-custompowerapplication3-iconid)

IconID 指定包含要用于 CustomPowerApplication3的图标的资源 DLL 的完整路径。IconID specifies the full path to the resource DLL that contains the icon to use with CustomPowerApplication3.

此设置是可选的。This setting is optional.

若要为每种语言使用不同的 IconID,请创建一个资源文件,并使用以下格式引用它: "filename.dll,-referenceid"。To use a different IconID for each language, create a resource file, and refer to it using the format: "filename.dll,-referenceid". 有关为此设置创建本地化文本版本的信息,请参阅主题将 MUI 与应用程序配合使用For information on creating localized text versions for this setting, see the topic Using the MUI with Applications.



指定要用于 CustomPowerApplication3的图标的资源 ID。Specifies the resource ID of the icon to use for CustomPowerApplication3.

IconID 表示为 @dllname,-resourceID,其中 dllname 必须包含资源 DLL 的完整路径。IconID is represented as @dllname,-resourceID, where dllname must include a full path to the resource DLL. 例如,For example,

@%ProgramFiles%\Microsoft Shared\Resource.dll,-200.

ID 是一个字符串。ID is a string.

该字符串类型支持空元素。This string type supports empty elements.

有效的配置阶段Valid Configuration Passes



父层次结构Parent Hierarchy

Microsoft-microsoft-windows-stobject | CustomPowerApplication3 | IconIDMicrosoft-Windows-stobject | CustomPowerApplication3 | IconID

适用于Applies To

有关此组件支持的 Windows 版本和体系结构的列表,请参阅 microsoft-windows-stobjectFor a list of the supported Windows editions and architectures this component supports, see Microsoft-Windows-stobject.

XML 示例XML Example

下面的 XML 输出显示了 CustomPowerApplication3 Application.exe parameter -paramThe following XML output shows CustomPowerApplication3 Application.exe with parameter -param. IconIDItemName 将包含在 Resource.dll 文件中。IconID and ItemName are included in the Resource.dll file.

   <IconID>@%ProgramFiles%\Microsoft Shared\Resource.dll,-200</IconID>
   <ItemName>%ProgramFiles%\Microsoft Shared\Resource.dll,-100</ItemName>