SoapHttpChannelOptions.UserAgent Property
Gets or sets the value for the user agent header that is sent with each request.
Namespace: Microsoft.Web.Services3.Messaging
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)
Usage
'Usage
Dim soapHttpChannelOptions1 As SoapHttpChannelOptions
Dim returnValue As String
returnValue = soapHttpChannelOptions1.UserAgent
Dim sampleValue As String
soapHttpChannelOptions1.UserAgent = sampleValue
Syntax
'Declaration
Public Property UserAgent() As String
public string UserAgent {get; set;}
public:
property String^ UserAgent {
String^ get();
void set(String^ value);
}
public System.String get_UserAgent();
public void set_UserAgent(System.String);
public function get UserAgent() : String;
public function set UserAgent(String);
Property Value
The value of the HTTP protocol User-Agent header. The default is "Microsoft WSE 2.0".
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server
Target Platforms
See Also
Reference
SoapHttpChannelOptions Class
SoapHttpChannelOptions Members
Microsoft.Web.Services3.Messaging Namespace