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: IUserAgentNewly created user agent branding.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | When name or search string provided is null or empty |
ArgumentException | When entries with the same name or search string exist in the collection. |
See Also