System.Web.Services.Protocols.MimeFormatter.GetInitializers Method

When overridden in a derived class, returns an array of initializer objects corresponding to an input array of method definitions.

Syntax

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

Parameters

methodInfos
An array of Web methods where, for each method, the object of the corresponding index in the returned initializer array is obtained.

Returns

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

Remarks

An initializer is an object passed as a parameter to the MimeFormatter.Initialize(object) method.

The MimeFormatter.GetInitializers(LogicalMethodInfo[]) instance method invokes the MimeFormatter.GetInitializer(LogicalMethodInfo) instance method for each input Web method. This means an instance of a class derived from System.Web.Services.Protocols.MimeFormatter has already been created. At the time a request or response is processed, the initializer is passed to the MimeFormatter.Initialize(object) method of another instance of the derived class. The latter object performs the actual reading or writing.

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