Udostępnij za pośrednictwem


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

See Also

Reference

WebTestResponse Class

WebTestResponse Members

Microsoft.VisualStudio.TestTools.WebTesting Namespace

Other Resources

HTTP