HtmlFormParameterReader 类

定义

读取使用 HTTP 实现的 Web 服务的传入请求参数,参数的名称/值对编码为类似 HTML 格式而不是编码为 SOAP 消息。Reads incoming request parameters for Web services implemented using HTTP, with name-value pairs encoded like an HTML form rather than as a SOAP message.

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

注解

HtmlFormParameterReaderSystem.Web.Services.Protocols命名空间中的其他类通过 HTTP GET 和 http POST 操作支持 Web 服务的 .NET Framework 实现。HtmlFormParameterReader and other classes in the System.Web.Services.Protocols namespace support the .NET Framework's implementations of Web services via the HTTP-GET and HTTP-POST operations. Web 服务编写器和读取器分别在参数或返回 Web 方法的对象和 HTTP 请求或响应流之间进行序列化和反序列化。Web service writers and readers serialize and deserialize, respectively, between the parameters or return objects of Web methods and the HTTP request or response streams. Web 服务编写器和读取器使用 HTTP 进行传输, 但不使用 SOAP 标准交换消息。Web service writers and readers use HTTP for transport but don't exchange messages using the SOAP standard. 服务端HtmlFormParameterReader类提供一Read种方法来读取参数名称-值对, 这些参数使用 MIME 类型application/x-www-form-urlencoded编码到 HTTP 请求的正文中。The service-side HtmlFormParameterReader class provides a Read method to read parameter name-value pairs that are encoded into the body of an HTTP request with the MIME type application/x-www-form-urlencoded.

通常不需要直接使用HtmlFormParameterReaderYou typically will not need to use HtmlFormParameterReader directly. 如果 ASP.NET 配置文件的 (web.config) <协议 > Element元素包含 <用于协议的 add > 元素 > 元素< name,则将启用HTTP发布Web服务属性的值为 "HttpPost"。HTTP-POST Web services are enabled when an ASP.NET configuration file's (Web.config) <protocols> Element element contains an <add> Element for <protocols> element whose name attribute's value is "HttpPost". 当启用了一个 http POST Web 服务并收到适用的 http 请求时, 将自动使用该类。HtmlFormParameterReaderThe HtmlFormParameterReader class is automatically used when an HTTP-POST Web service is enabled and an applicable HTTP request is received.

构造函数

HtmlFormParameterReader()

初始化 HtmlFormParameterReader 类的新实例。Initializes a new instance of the HtmlFormParameterReader class.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetInitializer(LogicalMethodInfo)

返回指定方法的初始值设定项。Returns an initializer for the specified method.

(继承自 ValueCollectionParameterReader)
GetInitializers(LogicalMethodInfo[])

在派生类中重写时,返回与方法定义的输入数组对应的初始值设定项对象的数组。When overridden in a derived class, returns an array of initializer objects corresponding to an input array of method definitions.

(继承自 MimeFormatter)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
Initialize(Object)

初始化一个实例。Initializes an instance.

(继承自 ValueCollectionParameterReader)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
Read(HttpRequest)

将名称/值对读入 Web 方法参数值。Reads name-value pairs into Web method parameter values.

Read(NameValueCollection)

将名称/值对的集合转换为表示方法参数值的对象数组。Translates a collection of name/value pairs into an array of objects representing method parameter values.

(继承自 ValueCollectionParameterReader)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅