System.Web.Services.Protocols.XmlReturnReader.GetInitializers Method

Returns an array of initializer objects corresponding to an input array of method definitions.

Syntax

public override object[] GetInitializers (LogicalMethodInfo[] methodInfos)

Parameters

methodInfos
An array of type System.Web.Services.Protocols.LogicalMethodInfo that specifies the Web methods for which the initializers are obtained.

Returns

An array of initializer objects corresponding to an input array of method definitions.

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.GetInitializers(LogicalMethodInfo[]) method is invoked during service initialization. Later, at the time a response is processed, the initializer object for each Web method 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