IEwsHttpWebRequest.UserAgent property
Gets or sets the value of the User-agent HTTP header.
The UserAgent property is applicable for clients that target Exchange Online and versions of Exchange starting with Microsoft Exchange Server 2007.
Namespace: Microsoft.Exchange.WebServices.Data
Assembly: Microsoft.Exchange.WebServices (in Microsoft.Exchange.WebServices.dll)
Syntax
'Declaration
Property UserAgent As String
Get
Set
'Usage
Dim instance As IEwsHttpWebRequest
Dim value As String
value = instance.UserAgent
instance.UserAgent = value
string UserAgent { get; set; }
Property value
Type: System.String
The value of the User-agent HTTP header. The default value is a null reference (Nothing in Visual Basic). The value for this property is stored in the WebHeaderCollection object. If WebHeaderCollection is set, the property value is lost.