System.Web.Services.Protocols.XmlReturnReader.GetInitializer Method

Returns an initializer for the specified method.

Syntax

public override object GetInitializer (LogicalMethodInfo methodInfo)

Parameters

methodInfo
A System.Web.Services.Protocols.LogicalMethodInfo that specifies the Web method for which the initializer is obtained.

Returns

An initializer for the specified method.

Remarks

An initializer is an object passed as a parameter to the Initialize method. For the System.Web.Services.Protocols.XmlReturnReader class, the initializer is an System.Xml.Serialization.XmlSerializer object for the return type of the Web method.

The XmlReturnReader.GetInitializer(LogicalMethodInfo) method is invoked during service initialization. Later, at the time a response is processed, the initializer object is passed to the XmlReturnReader.Initialize(object) method of another System.Web.Services.Protocols.XmlReturnReader instance. The other instance performs the actual reading.

Requirements

Namespace: System.Web.Services.Protocols
Assembly: System.Web.Services (in System.Web.Services.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0