Udostępnij za pośrednictwem


AddUpdateContent Method in Class SMS_SoftwareUpdatesPackage

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 AddUpdateContent Windows Management Instrumentation (WMI) class method, in Configuration Manager, downloads content to a software update package and replicates the content to distribution points.

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

SInt32 AddUpdateContent(
     UInt32 ContentIDs[],
     String ContentSourcePath[],
     Boolean bRefreshDPs
);

Parameters

  • ContentIDs
    Data type: UInt32 Array

    Qualifiers: [in]

    IDs of contents to add to the software updates package.

  • ContentSourcePath
    Data type: String Array

    Qualifiers: [in]

    The source path where the content files are located.

  • bRefreshDPs
    Data type: Boolean

    Qualifiers: [in, optional]

    true (default) to replicate package content to the distribution points.

Return Values

The method returns an exception on failure.

For information about handling returned errors, see About Configuration Manager Errors.

Remarks

This method first creates the SMS_SoftwareUpdatesPackage Server WMI Class object and then adds the indicated content. Your application can use SMS_CIToContent Server WMI Class and SMS_CIContentFiles Server WMI Class to determine the content.

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_SoftwareUpdatesPackage Server WMI Class
SMS_CIToContent Server WMI Class
SMS_CIContentFiles Server WMI Class
RebuildPackage Method in Class SMS_SoftwareUpdatesPackage
RemoveContent Method in Class SMS_SoftwareUpdatesPackage