ValueCollectionParameterReader 类

定义

充当为使用 HTTP 实现但不支持 SOAP 的 Web 服务提供的传入请求参数的读取器的基类。Serves as a base class for readers of incoming request parameters for Web services implemented using HTTP but without SOAP.

public ref class ValueCollectionParameterReader abstract : System::Web::Services::Protocols::MimeParameterReader
public abstract class ValueCollectionParameterReader : System.Web.Services.Protocols.MimeParameterReader
type ValueCollectionParameterReader = class
    inherit MimeParameterReader
Public MustInherit Class ValueCollectionParameterReader
Inherits MimeParameterReader
继承
ValueCollectionParameterReader
派生

注解

ValueCollectionParameterReaderSystem.Web.Services.Protocols命名空间中的其他类通过 HTTP GET 和 http POST 操作支持 Web 服务的 .NET Framework 实现。ValueCollectionParameterReader 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. 类提供了其他方法, 其中包括名称/ Read值对集合的所有服务端读取器到 Web 方法参数的公共方法。 ValueCollectionParameterReaderThe ValueCollectionParameterReader class provides, among other methods, a common Read method for all service-side readers of collections of name/value pairs into Web method parameters. 已从传入的 HTTP 请求分析名称/值对。The name/value pairs have been parsed from an incoming HTTP request.

通常不需要直接使用ValueCollectionParameterReader或其子类。You typically will not need to use ValueCollectionParameterReader or its descendant classes directly. 根据 ASP.NET 配置文件 (web.config) 中的设置使用适当的类型。The appropriate types are used according to settings in an ASP.NET configuration file (Web.config).

构造函数

ValueCollectionParameterReader()

初始化 ValueCollectionParameterReader 类的新实例。Initializes a new instance of the ValueCollectionParameterReader 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.

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.

IsSupported(LogicalMethodInfo)

确定 ValueCollectionParameterReader 类是否支持方法定义的参数定义。Determines whether a method definition's parameter definitions are supported by the ValueCollectionParameterReader class.

IsSupported(ParameterInfo)

确定 ValueCollectionParameterReader 类是否支持某一特定参数类型。Determines whether a particular parameter type is supported by the ValueCollectionParameterReader class.

MemberwiseClone()

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

(继承自 Object)
Read(HttpRequest)

在派生类中重写时,将 HTTP 请求反序列化为 Web 方法参数值的数组。When overridden in a derived class, deserializes an HTTP request into an array of Web method parameter values.

(继承自 MimeParameterReader)
Read(NameValueCollection)

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

ToString()

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

(继承自 Object)

适用于

另请参阅