System.Web.Services.Protocols.TextReturnReader.GetInitializer Method

Returns an initializer for the specified method.

Syntax

public override object GetInitializer (LogicalMethodInfo methodInfo)

Parameters

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

Returns

An initializer for the specified method

Remarks

An initializer is an object passed as a parameter to the TextReturnReader.Initialize(object) method. For the System.Web.Services.Protocols.TextReturnReader class, the initializer is a System.Web.Services.Protocols.PatternMatcher object based on the return type of the Web method.

The TextReturnReader.GetInitializer(LogicalMethodInfo) method is invoked during service initialization. Later, at the time a response is processed, the initializer object is passed to the TextReturnReader.Initialize(object) method of another System.Web.Services.Protocols.TextReturnReader 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