語言

WebRequestModuleElement.Type 屬性

定義

接收或設定一個類別來產生網頁請求。

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 識別網路請求模組的實例。

屬性

備註

利用 和 WebRequestWebResponse 類別,應用程式可以請求任何有效的 Uri資源。 使用此屬性指定一個註冊型別,該類型可與該方法合作 Create 以建立新請求。

.NET Framework 2.0 版本提供網頁請求模組,可創建以下前綴的資源請求:

  • HTTP

  • HTTPS

  • FTP

  • 檔案

適用於