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 方案相关联,以便在 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) |
创建一个 WebRequest 实例。Creates a WebRequest instance. |