The UserAgent property gets or sets a string that specifies the User-Agent headers.
HRESULT put_UserAgent( BSTR bstrUserAgent ); HRESULT get_UserAgent( BSTR* pbstrUserAgent );
Pointer to a BSTR that is set on return to a string value specifying the User-Agent headers.
BSTR that specifies the User-Agent headers.
These property methods return S_OK if the call is successful; otherwise, they return an error code.
Property UserAgent As String
String that specifies the User-Agent headers.
This property is read/write. The value of this property is initially set when the object is created using the Add method of the FPCUserAgentMappings collection (IFPCUserAgentMappings interface in C++).
The string specified in this property may contain wildcard characters (*). A User-Agent mapping whose UserAgent property is set to a wildcard character (*) applies to all User-Agent headers. A User-Agent mapping whose UserAgent property is set to a string that begins and ends with a wildcard character applies to any User-Agent header that contains the substring between the wildcard characters.
|Client||Requires Windows Vista or Windows XP.|
|Server||Requires Windows Server 2008.|
|Version||Requires Forefront Threat Management Gateway (TMG).|
Declared in Msfpccom.idl.
Build date: 11/30/2009
© 2008 Microsoft Corporation. All rights reserved.