UrlParameterReader 類別

定義

為使用 HTTP 實作的 Web 服務讀取連入要求參數,並將參數的名稱 / 值組編碼在 URL 查詢字串中,而不是編碼為 SOAP 訊息。

public ref class UrlParameterReader : System::Web::Services::Protocols::ValueCollectionParameterReader
public class UrlParameterReader : System.Web.Services.Protocols.ValueCollectionParameterReader
type UrlParameterReader = class
    inherit ValueCollectionParameterReader
Public Class UrlParameterReader
Inherits ValueCollectionParameterReader
繼承

備註

UrlParameterReader以及命名空間中的其他類別,透過 System.Web.Services.Protocols HTTP GET 和 HTTP POST 作業,支援 .NET Framework 的 Web 服務的執行。 Web 服務寫入器和讀取器會分別序列化和還原序列化 Web 方法的參數或傳回物件,以及 HTTP 要求或回應資料流程。 Web 服務寫入器和讀取器會使用 HTTP 進行傳輸,但不會使用 SOAP 標準來交換訊息。

UrlParameterReader類別會提供服務端方法, Read 以讀取編碼為 HTTP 要求 URL 查詢字串的參數名稱/值組。 例如,在 URL 中 http://contoso.com?a=1&b=2ab 是參數名稱,而且 12 都是它們的值。

您通常不需要 UrlParameterReader 直接使用。 當 ASP.NET 設定檔的 (Web.config) protocols 元素包含 add 名稱屬性的值為 "" 的元素時,就會啟用 HTTP-GET Web 服務 HttpGetUrlParameterReader當啟用 HTTP GET Web 服務並收到適用的 HTTP 要求時,就會自動使用類別。

建構函式

UrlParameterReader()

初始化 UrlParameterReader 類別的新執行個體。

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetInitializer(LogicalMethodInfo)

傳回指定方法的初始設定式。

(繼承來源 ValueCollectionParameterReader)
GetInitializers(LogicalMethodInfo[])

在衍生類別中覆寫時,會傳回初始設定式物件的陣列,該陣列對應方法定義的輸入陣列。

(繼承來源 MimeFormatter)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
Initialize(Object)

初始化執行個體。

(繼承來源 ValueCollectionParameterReader)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
Read(HttpRequest)

將以 HTTP 要求之查詢字串編碼的名稱 / 值組讀入 Web 方法參數值。

Read(NameValueCollection)

將名稱 / 值組的集合轉譯為表示方法參數值的物件陣列。

(繼承來源 ValueCollectionParameterReader)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於

另請參閱