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

Returns an initializer for the specified method.

Syntax

public static object GetInitializer (Type type, LogicalMethodInfo methodInfo)

Parameters

type
The Type, derived from System.Web.Services.Protocols.MimeFormatter,- for which an initializer is obtained.
methodInfo
A System.Web.Services.Protocols.LogicalMethodInfo that specifies the Web method for which the initializer is obtained.

Returns

A object 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.

The static MimeFormatter.GetInitializer(Type, LogicalMethodInfo) method invokes the derived class's MimeFormatter.GetInitializer(LogicalMethodInfo) method, implicitly creating an instance of the derived class. At the time a request or response is processed, the initializer object 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