NopReturnReader 类

定义

充当为使用 HTTP 实现但不支持 SOAP 的 Web 服务客户端提供的传入响应返回值的不执行操作的读取器。Serves as a non-acting reader of incoming response return values for Web service clients implemented using HTTP but without SOAP.

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

注解

NopReturnReaderSystem.Web.Services.Protocols命名空间中的其他类通过 HTTP GET 和 http POST 操作支持 Web 服务的 .NET Framework 实现。NopReturnReader 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.

类提供抽象类MimeReturnReader的接口的非读取实现。 NopReturnReaderThe NopReturnReader class provides a non-reading implementation of the interface of the abstract class MimeReturnReader.

通常不需要使用NopReturnReader类。You typically will not need to use the NopReturnReader class. 相反, 当 wsdl.exe 工具根据 HTTP GET 或 http POST 实现生成客户端代理代码时, 它会将应用HttpMethodAttribute于每个 Web 方法, 默认情况下, 会将该特性的ReturnFormatter属性设置为XmlReturnReader, 另一个类派生自MimeReturnReaderInstead, when the Wsdl.exe tool generates client proxy code according to the HTTP-GET or HTTP-POST implementations, .it applies the HttpMethodAttribute to each Web method and, by default, sets the attribute's ReturnFormatter property to XmlReturnReader, another class derived from MimeReturnReader. 如果在其他情况中无法确定NopReturnReader值, 则 wsdl.exe 将属性设置为。Wsdl.exe sets the property to NopReturnReader if it is otherwise unable to determine a value.

构造函数

NopReturnReader()

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

MemberwiseClone()

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

(继承自 Object)
Read(WebResponse, Stream)

返回 null,而不是将 HTTP 响应流反序列化为 Web 方法返回值。Returns null instead of deserializing the HTTP response stream into a Web method return value.

ToString()

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

(继承自 Object)

适用于

另请参阅