AddUpdateContent Method in Class SMS_SoftwareUpdatesPackage

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.

Syntax

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

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