共用方式為


GetPDFData 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

In Configuration Manager, the GetPDFData Windows Management Instrumentation (WMI) class method produces SMS_Package Server WMI Class and SMS_Program Server WMI Class objects from a loaded 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 GetPDFData(
     UInt32 PDFID,
     SMS_Package PackageData,
      SMS_Program ProgramData[]
);

Parameters

  • ProgramData
    Data type: SMS_Program Array

    Qualifiers: [out]

    SMS_Program Server WMI Class objects produced from the package definition file.

Return Values

An SInt32 data type that is one of the following bit-field warning flags.

Flag Description

WARN_BAD_RUN (0)

Invalid run information specified.

WARN_BAD_RESTART (1)

Invalid restart information specified.

WARN_BAD_CANRUNWHEN (2)

Invalid CanRunWhen information specified.

WARN_BAD_ASSIGNMENT (3)

Invalid assignment information specified.

WARN_BAD_DEPENDPROG (4)

Invalid DependentProgram information specified.

WARN_BAD_SPECIFYDRIVE (5)

Invalid SpecifyDrive information specified.

WARN_BAD_ESTDISKSPACE (6)

Invalid EstimatedDiskSpace information specified.

WARN_NO_SUPPCLINFO (7)

No SupportedClients information specified.

WARN_BAD_SUPPCLINFO (8)

Invalid SupportedClients information specified.

WARN_VER1PDF (9)

Version 1.0 file used.

WARN_REMPRONOUKEY(10)

The remove program is set, but no uninstall Key is given.

Example Code

For an example that uses this method, see How to Create a Package by Using a Package Definition File Template.

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