System.Web.Services.Protocols.AnyReturnReader.GetInitializer Method

Returns the parameter passed to the AnyReturnReader.Initialize(object) method.

Syntax

public override object GetInitializer (LogicalMethodInfo methodInfo)

Parameters

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

Returns

The parameter passed to the AnyReturnReader.Initialize(object) method.

Remarks

An initializer is an object passed as a parameter to the AnyReturnReader.Initialize(object) method. For the System.Web.Services.Protocols.AnyReturnReader class, the initializer is the instance referred to by the keyword this, unless the System.Web.Services.Protocols.LogicalMethodInfo parameter value has a void return type, in which case the initializer is set to null.

The AnyReturnReader.GetInitializer(LogicalMethodInfo) method is invoked during service initialization. Later, at the time a response is processed, the initializer System.Web.Services.Protocols.AnyReturnReader object is passed to the AnyReturnReader.Initialize(object) method of another System.Web.Services.Protocols.AnyReturnReader instance. The other instance takes the call to the AnyReturnReader.Read(System.Net.WebResponse, System.IO.Stream) method.

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