LoadIconForPDF Method in Class SMS_PDF_Package

 

Applies To: System Center 2012 Configuration Manager, System Center 2012 Configuration Manager SP1, System Center 2012 R2 Configuration Manager

The LoadIconForPDF Windows Management Instrumentation (WMI) class method, in Configuration Manager, imports a required icon for a package definition file.

The following syntax is simplified from Managed Object Format (MOF) code and defines the method.

Syntax

SInt32 LoadIconForPDF(
    UInt32 PDFID,
     String IconFileName,
     UInt8 Icon[]
);

Parameters

  • PDFID
    Data type: UInt32

    Qualifiers: [in]

    ID of the package definition file to which to add icons. Get this value from the PDFID parameter of the LoadPDF Method in Class SMS_PDF_Package method.

  • IconFileName
    Data type: String

    Qualifiers: [in, SizeLimit("100")]

    Full path and file name of a required package definition file icon. Get the icon name from the RequriedIconNames parameter of the LoadPDF method. Include the path if necessary.

  • Icon
    Data type: UInt8 Array

    Qualifiers: [in]

    Icon to associate with the package.

Return Values

An SInt32 data type.

Remarks

Package definition files can reference icons to be used with the package. These icons are not part of the file and must be loaded separately.

Your application must call LoadIconForPDF for every icon that LoadPDF Method in Class SMS_PDF_Package loads.

Example Code

For an example that uses the LoadIconForPDF method, see LoadPDF Method in Class SMS_PDF_Package.

Requirements

Runtime Requirements

For more information, see Configuration Manager Server Runtime Requirements.

Development Requirements

For more information, see Configuration Manager Server Development Requirements.

See Also

SMS_PDF_Package Server WMI Class