The AddContent Windows Management Instrumentation (WMI) class method, in Configuration Manager, adds content to the SMS_ContentPackage Server WMI Class content package.
The following syntax is simplified from Managed Object Format (MOF) code and defines the method.
sint32 AddContent ( string ContentID[], uint32 ContentVersion[] string ContentSource[], uint32 ContentFlags[] uint32 ContentType[], string RelatedContentID[] ); |
Parameters
- ContentID
- Data type: string ArrayQualifiers: [in]Identifier of the content.
- ContentVersion
- Data type: UInt32 ArrayQualifiers: [in]Version of the content.
- ContentSource
- Data type: String ArrayQualifiers: [in]Specifies the source location where content files are stored.
- ContentFlags
- Data type: UInt32 ArrayQualifiers: [in]This
specifies additional attributes for the content instance.
8
DOWNLOAD_ON_DEMAND_FROM_LOCAL_DP
12
DOWNLOAD_FROM_LOCAL_DISPPOINT
13
DOWNLOAD_LOCAL_PARTIALDOWNLOADTOLOCAL
14
DOWNLOAD_FROM_REMOTE_DISPPOINT
15
DOWNLOAD_REMOTE_PARTIALDOWNLOADTOLOCAL
16
DOWNLOAD_ENABLE_PEER_CACHING
17
DP_NO_FALLBACK_UNPROTECTED
24
DO_NOT_DOWNLOAD
25
PERSIST_IN_CACHE
- ContentType
- Data type: UInt32 ArrayQualifiers: [in]Specifies the type of content.
- RelatedContentID
- Data type: string ArrayQualifiers: [in]Specifies the related content associated with this content.
Return Values
An SInt32 data type that is 0 to indicate success or non-zero to indicate failure.
For more information about handling returned errors, see About Configuration Manager Errors.
Remarks
The input parameters are a parallel array for each content element.
Requirements
Runtime Requirements
For more information, see Configuration Manager Server Runtime Requirements.
Development Requirements
For more information, see Configuration Manager Server Development Requirements.