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 = ""
)
Function AddUserAgent (
name As String,
searchString As String,
Optional contentType As String = "",
Optional fileExtension As String = ""
) As IUserAgent
IUserAgent^ AddUserAgent(
String^ name,
String^ searchString,
String^ contentType = L"",
String^ fileExtension = L""
)
abstract AddUserAgent :
name : string *
searchString : string *
?contentType : string *
?fileExtension : string
(* Defaults:
let _contentType = defaultArg contentType ""
let _fileExtension = defaultArg fileExtension ""
*)
-> IUserAgent
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 See Also