WebRequestModuleElement 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示 URI 前缀和处理为前缀创建 Web 请求的关联类。 此类不能被继承。
public ref class WebRequestModuleElement sealed : System::Configuration::ConfigurationElement
public sealed class WebRequestModuleElement : System.Configuration.ConfigurationElement
type WebRequestModuleElement = class
inherit ConfigurationElement
Public NotInheritable Class WebRequestModuleElement
Inherits ConfigurationElement
- 继承
注解
WebRequest使用和WebResponse类,应用程序可以请求任何有效的Uri资源。 使用此配置元素可指定注册用于处理 Create 重载的模块以创建新请求。
此类对应于 <add> Element for webRequestModules (网络设置) 配置元素。
此类用于指定注册以对向和WebRequestWebClient类发出的请求进行身份验证的模块。
此类提供对可存储在配置文件中的信息的编程访问。
.NET Framework 版本 2.0 提供 Web 请求模块,用于创建具有以下前缀的资源请求:
HTTP
HTTPS
FTP
文件
构造函数
| 名称 | 说明 |
|---|---|
| WebRequestModuleElement() |
初始化 WebRequestModuleElement 类的新实例。 |
| WebRequestModuleElement(String, String) |
使用指定的 URI 前缀和类型信息初始化类的新实例 WebRequestModuleElement 。 |
| WebRequestModuleElement(String, Type) |
使用指定的 URI 前缀和类型标识符初始化类的新实例 WebRequestModuleElement 。 |