System.Net.IWebRequestCreate Interface

public interface IWebRequestCreate

Assembly

System

Library

Networking

Summary

Provides a mechanism for creating new WebRequest instances.

Description

[Note: The System.Net.IWebRequestCreate.Create(System.Uri) method is implemented by types that derive from WebRequest. The System.Net.IWebRequestCreate.Create(System.Uri) method is invoked via the System.Net.WebRequest.Create(System.Uri,System.Boolean) method.

Types that implement the IWebRequestCreate interface are associated with a specific URI scheme and registered with the WebRequest class. When an application requests a WebRequest object for a specific URI, WebRequest calls the System.Net.IWebRequestCreate.Create(System.Uri) method of the type associated with the requested URI.

]

See Also

System.Net Namespace

Members

IWebRequestCreate Methods

IWebRequestCreate.Create Method


IWebRequestCreate.Create Method

WebRequest Create(Uri uri);

Summary

Returns a WebRequest instance.

Parameters

uri
The Uri to be associated with the new instance.

Return Value

A new WebRequest instance.

Description

[Behaviors: This method returns a new instance of a type that derives from WebRequest .]

[Usage: This method is used by the WebRequest class.]

See Also

System.Net.IWebRequestCreate Interface, System.Net Namespace