Click or drag to resize

ISiteMapAddUserAgent Method


Adds a new user agent branding to a collection.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.3.169
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