System.Web.Services.Protocols.MimeFormatter.GetInitializer Method

When overridden in a derived class, returns an initializer for the specified method.

Syntax

public abstract 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 object that contains the initializer for the specified method.

Remarks

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

A derived class's implementation of the MimeFormatter.GetInitializer(LogicalMethodInfo) instance method is invoked during client or service initialization. Later, at the time a request or response is processed, the initializer object is passed to the static MimeFormatter.CreateInstance(Type, object) method, which creates an instance of another object of the derived class, and then to the MimeFormatter.Initialize(object) method to initialize it. The other 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