Rediger

Del via


WebRequestModuleElement.Type Property

Definition

Gets or sets a class that creates Web requests.

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

Property Value

A Type instance that identifies a Web request module.

Attributes

Remarks

Using the WebRequest and WebResponse classes, applications can request resources for any valid Uri. Use this property to specify a type that is registered to work with the Create method to create new requests.

The .NET Framework version 2.0 provides Web request modules that create requests for resources with the following prefixes:

  • HTTP

  • HTTPS

  • FTP

  • FILE

Applies to