XmlReturnReader.Initialize(Object) 方法

定义

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

public:
 override void Initialize(System::Object ^ o);
public override void Initialize (object o);
override this.Initialize : obj -> unit
Public Overrides Sub Initialize (o As Object)

参数

o
Object

一个 XmlSerializer,用于正在调用的 Web 方法的返回类型。An XmlSerializer for the return type of the Web method being invoked.

注解

Initialize方法提供 XmlSerializer Read 方法用来反序列化 HTTP 响应中包含的 XML 文档的对象。The Initialize method supplies the XmlSerializer object used by the Read method to deserialize an XML document contained in the HTTP response.

处理请求时,将 Initialize 调用方法。The Initialize method is invoked at the time a request is processed. o通过 GetInitializer GetInitializers 在客户端初始化期间调用另一个实例上的或方法,可获取输入参数。The input parameter, o, is obtained by calling the GetInitializer or GetInitializers method on another instance during client initialization.

适用于