ISiteMapAddUserAgent Method Ingeniux CMS Content Store API

Adds a new user agent branding to a collection.

Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 9.0.565.0 (9.0.565)
Syntax

IUserAgent AddUserAgent(
	string name,
	string searchString,
	string contentType = "",
	string fileExtension = ""
)

Parameters

name
Type: SystemString
Name of new user agent branding. This parameter cannot be null or empty.
searchString
Type: SystemString
Search string of the user agent branding. Not case-sensitive, cannot be null or empty.
contentType (Optional)
Type: SystemString
User agent branding content type
fileExtension (Optional)
Type: SystemString
User agent branding file extension (reserved for MFO publish)

Return Value

Type: IUserAgent
Newly created user agent branding.
Exceptions

ExceptionCondition
ArgumentNullExceptionWhen name or search string provided is null or empty
ArgumentExceptionWhen entries with the same name or search string exist in the collection.
See Also

Reference