IWebRequestCreate 接口

定义

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

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

注解

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

实现 IWebRequestCreate 接口的类可向 WebRequest 类注册,并与特定 URI 方案相关联,以便在请求与该方案匹配的 URI 时,WebRequest 调用类的 Create 方法。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)

创建 WebRequest 实例。Creates a WebRequest instance.

适用于