IWebRequestCreate IWebRequestCreate IWebRequestCreate IWebRequestCreate Interface

定义

提供用于创建 WebRequest 实例的基接口。Provides the base interface for creating WebRequest instances.

public interface class IWebRequestCreate
public interface IWebRequestCreate
type IWebRequestCreate = interface
Public Interface IWebRequestCreate
派生

注解

接口定义WebRequest子代必须WebRequest.Create用于注册方法的方法。 IWebRequestCreateThe IWebRequestCreate interface defines the method that WebRequest descendants must use to register with the WebRequest.Create method.

实现IWebRequestCreate接口的类可以注册WebRequest到类, 并与特定 URI 方案相关联, 以便在WebRequest请求与该方案匹配的Create URI 时, 调用类的方法。Classes that implement the IWebRequestCreate interface can be registered with the WebRequest class and associated with a specific URI scheme so that the WebRequest calls the class's Create method when a URI that matches that scheme is requested.

方法

Create(Uri) Create(Uri) Create(Uri) Create(Uri)

创建一个 WebRequest 实例。Creates a WebRequest instance.

适用于