WebTestResponse.Server Property
Gets the name of the server that sent the response.
Namespace: Microsoft.VisualStudio.TestTools.WebTesting
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Syntax
'Declaration
Public ReadOnly Property Server As String
'Usage
Dim instance As WebTestResponse
Dim value As String
value = instance.Server
public string Server { get; }
public:
property String^ Server {
String^ get ();
}
public function get Server () : String
Property Value
Type: System.String
A string that contains the name of the server that sent the response.
Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | The current instance has been disposed. |
Remarks
The Server property contains the value of the server header returned with the response.
.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