Click or drag to resize

IMobileDeviceManagerAddDeviceBundle Method


Adds a new device bundle to the collection.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.308
Syntax
IDeviceBundle AddDeviceBundle(
	string name,
	string userAgent,
	int screenWidth,
	int screenHeight
)

Parameters

name
Type: SystemString
Name of new device bundle to add
userAgent
Type: SystemString
Name of the User Agent creating the new device bundle.
screenWidth
Type: SystemInt32
Integer value of the screen width for the new device bundle.
screenHeight
Type: SystemInt32
Integer value of the screen height for the new device bundle.

Return Value

Type: IDeviceBundle
Newly created device bundle.
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen the supplied name is null or an empty string.
ArgumentExceptionWhen an existing device bundle already has the supplied name.
Remarks

The returned object is not yet stored in the content store.

See Also