Edit

Share via


XmlReturnReader.GetInitializers(LogicalMethodInfo[]) Method

Definition

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

public:
 override cli::array <System::Object ^> ^ GetInitializers(cli::array <System::Web::Services::Protocols::LogicalMethodInfo ^> ^ methodInfos);
public override object[] GetInitializers (System.Web.Services.Protocols.LogicalMethodInfo[] methodInfos);
override this.GetInitializers : System.Web.Services.Protocols.LogicalMethodInfo[] -> obj[]
Public Overrides Function GetInitializers (methodInfos As LogicalMethodInfo()) As Object()

Parameters

methodInfos
LogicalMethodInfo[]

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

Returns

Object[]

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 XmlReturnReader class, the initializer is an XmlSerializer object for the return type of the Web method.

The GetInitializers 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 Initialize method of another XmlReturnReader instance. The other instance performs the actual reading.

Applies to