XmlReturnReader.GetInitializers(LogicalMethodInfo[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.