SoapHttpClientProtocol.GetWebRequest(Uri) Method

Definition

Creates a WebRequest for the specified uri.

protected override System.Net.WebRequest GetWebRequest (Uri uri);

Parameters

uri
Uri

The Uri to use when creating the WebRequest.

Returns

The WebRequest for the specified URI.

Exceptions

The uri parameter is null.

Remarks

This method can be overridden to customize the WebRequest before the XML Web service request is made. For example, you could add a custom header to the request.

Applies to

製品 バージョン
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also