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=2中,a以及b参数名称及其12值。

通常不需要直接使用 UrlParameterReader 。 当 ASP.NET 配置文件的 (Web.config) protocols 元素包含名称属性值为“add”的 HttpGet 元素时,将启用 HTTP-GET Web 服务。 UrlParameterReader启用 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)

适用于

另请参阅