Freigeben über


LoadIconForPDF Method in Class SMS_PDF_Package

Applies To: System Center Configuration Manager 2007, System Center Configuration Manager 2007 R2, System Center Configuration Manager 2007 R3, System Center Configuration Manager 2007 SP1, System Center Configuration Manager 2007 SP2

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 is intended to show the definition of the method.

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

Parameters

  • 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

Concepts

SMS_PDF_Package Server WMI Class