WebTestResponse.ProtocolVersion Property
Gets the version of the HTTP protocol that is used in the response.
Namespace: Microsoft.VisualStudio.TestTools.WebTesting
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Syntax
'Declaration
Public ReadOnly Property ProtocolVersion As Version
'Usage
Dim instance As WebTestResponse
Dim value As Version
value = instance.ProtocolVersion
public Version ProtocolVersion { get; }
public:
property Version^ ProtocolVersion {
Version^ get ();
}
public function get ProtocolVersion () : Version
Property Value
Type: System.Version
A Version that contains the HTTP protocol version of the response.
Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | The current instance has been disposed. |
Remarks
The ProtocolVersion property contains the HTTP protocol version number of the response sent by the internet resource.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.TestTools.WebTesting Namespace