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.6.492
Syntax
IUserAgent AddUserAgent(
	string name,
	string searchString,
	string contentType = "",
	string fileExtension = ""
)

Parameters

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

Return Value

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