System.Web.Services.Protocols.SoapExtension.GetInitializer Method

When overridden in a derived class, allows a SOAP extension to initialize data specific to an XML Web service method using an attribute applied to the XML Web service method at a one time performance cost.

Syntax

public abstract object GetInitializer (LogicalMethodInfo methodInfo, SoapExtensionAttribute attribute)

Parameters

methodInfo
A System.Web.Services.Protocols.LogicalMethodInfo representing the specific function prototype for the XML Web service method to which the SOAP extension is applied.
attribute
The System.Web.Services.Protocols.SoapExtensionAttribute applied to the XML Web service method.

Returns

The object that the SOAP extension initializes for caching.

Remarks

If the SOAP extension is configured using a configuration file see the SoapExtension.GetInitializer(LogicalMethodInfo, SoapExtensionAttribute) overload that accepts a Type.

A SOAP extension has three opportunities to initialize data and they all have different purposes:

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