WebRequestModuleElement.Type 屬性

定義

取得或設定建立 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

屬性值

識別 Web 要求模組的 Type 執行個體。

屬性

備註

WebRequest使用和 WebResponse 類別,應用程式可以要求任何有效Uri的資源。 使用這個屬性來指定註冊的型別,以使用 Create 方法來建立新的要求。

.NET Framework 2.0 版提供 Web 要求模組,這些模組會建立具有下列前置詞的資源要求:

  • HTTP

  • HTTPS

  • FTP

  • FILE

適用於