WebRequestModuleElement.Type 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置创建 Web 请求的类。
public:
property Type ^ Type { Type ^ get(); void set(Type ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.Net.Configuration.WebRequestModuleElement+TypeTypeConverter))]
[System.Configuration.ConfigurationProperty("type")]
public Type Type { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Net.Configuration.WebRequestModuleElement+TypeTypeConverter))>]
[<System.Configuration.ConfigurationProperty("type")>]
member this.Type : Type with get, set
Public Property Type As Type
属性值
标识 Type Web 请求模块的实例。
- 属性
注解
WebRequest使用和WebResponse类,应用程序可以请求任何有效的Uri资源。 使用此属性可以指定注册以使用 Create 方法创建新请求的类型。
.NET Framework 版本 2.0 提供 Web 请求模块,用于创建具有以下前缀的资源请求:
HTTP
HTTPS
FTP
文件