The SMS_PackageToContent Windows Management Instrumentation (WMI) class is an SMS Provider server class, in Configuration Manager, that relates a Configuration Manager package to its content.
Class SMS_PackageToContent : SMS_BaseClass { SInt32 ContentID; String ContentSubFolder; String ContentUniqueID; SInt32 ContentVersionInPkg; SInt32 MinPackageVersion; String PackageID; UInt32 PackageType; UInt32 SecuredTypeID; String SecureObjectID; }; |
Methods
The following table lists the methods in SMS_PackageToContent.
Method | Description |
---|---|
Determines if the package content is valid. |
Properties
- ContentID
- Data type: SInt32Access type: Read/WriteQualifiers: [key, Not_null]The value of the ContentID property of the package.
- ContentSubFolder
- Data type: StringAccess type: Read/WriteQualifiers: [Not_null]The name of the subfolder in the package source folder that contains the files for the content.
- ContentUniqueID
- Data type: StringAccess type: Read-onlyQualifiers: [read, Not_null]The unique ID for the content.
- ContentVersionInPkg
- Data type: SInt32Access type: Read/WriteQualifiers: [Not_null]The version of the content in the package.
- MinPackageVersion
- Data type: SInt32Access type: Read/WriteQualifiers: [Not_null]The minimum package version in which the content appears.
- PackageID
- Data type: StringAccess type: Read/WriteQualifiers: [key, Not_null]Configuration Manager-specific ID of the package.
- PackageType
- Data type: UInt32Access type: Read/Write Qualifiers:
[enumeration]The type of the package. Possible values are:
Value Description 0
PKG_TYPE_REGULAR
3
PKG_TYPE_DRIVER
4
PKG_TYPE_TASK_SEQUENCE
5
PKG_TYPE_SWUPDATES
257
PKG_TYPE_IMAGE
258
PKG_TYPE_BOOTIMAGE
259
PKG_TYPE_OSINSTALLIMAGE
- SecuredTypeID
- Data type: UInt32Access type: Read-only Qualifiers: [read]Secured type of related package.
- SecureObjectID
- Data type: StringAccess type: Read/Write Qualifiers: NoneSecure object ID. For app, it is model name. For others, it is package ID.
Remarks
Class qualifiers for this class include:
- Secured
- Read (read-only)
For more information about both the class qualifiers and the property qualifiers included in the Properties section, see Configuration Manager Class and Property Qualifiers.
Your application can query this class to get the list of contents contained by a package or the list of packages that contain specified content.
Requirements
Runtime Requirements
For more information, see Configuration Manager Server Runtime Requirements.
Development Requirements
For more information, see Configuration Manager Server Development Requirements.