Rediger

Del via


MimeFormatter.GetInitializers Method

Definition

When overridden in a derived class, returns an array of initializer objects corresponding to an input array of method definitions.

Overloads

GetInitializers(LogicalMethodInfo[])

When overridden in a derived class, returns an array of initializer objects corresponding to an input array of method definitions.

GetInitializers(Type, LogicalMethodInfo[])

Returns an array of initializer objects corresponding to an input array of method definitions for a specified class derived from MimeFormatter.

GetInitializers(LogicalMethodInfo[])

When overridden in a derived class, returns an array of initializer objects corresponding to an input array of method definitions.

public:
 virtual cli::array <System::Object ^> ^ GetInitializers(cli::array <System::Web::Services::Protocols::LogicalMethodInfo ^> ^ methodInfos);
public virtual object[] GetInitializers (System.Web.Services.Protocols.LogicalMethodInfo[] methodInfos);
abstract member GetInitializers : System.Web.Services.Protocols.LogicalMethodInfo[] -> obj[]
override this.GetInitializers : System.Web.Services.Protocols.LogicalMethodInfo[] -> obj[]
Public Overridable Function GetInitializers (methodInfos As LogicalMethodInfo()) As Object()

Parameters

methodInfos
LogicalMethodInfo[]

An array of Web methods where, for each method, the object of the corresponding index in the returned initializer array is obtained.

Returns

Object[]

An array of initializer objects corresponding to the input array of method definitions.

Remarks

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

The GetInitializers instance method invokes the GetInitializer instance method for each input Web method. This means an instance of a class derived from MimeFormatter has already been created. At the time a request or response is processed, the initializer is passed to the Initialize method of another instance of the derived class. The latter object performs the actual reading or writing.

Applies to

GetInitializers(Type, LogicalMethodInfo[])

Returns an array of initializer objects corresponding to an input array of method definitions for a specified class derived from MimeFormatter.

public:
 static cli::array <System::Object ^> ^ GetInitializers(Type ^ type, cli::array <System::Web::Services::Protocols::LogicalMethodInfo ^> ^ methodInfos);
public static object[] GetInitializers (Type type, System.Web.Services.Protocols.LogicalMethodInfo[] methodInfos);
static member GetInitializers : Type * System.Web.Services.Protocols.LogicalMethodInfo[] -> obj[]
Public Shared Function GetInitializers (type As Type, methodInfos As LogicalMethodInfo()) As Object()

Parameters

type
Type

The Type, derived from MimeFormatter, for which initializers are obtained.

methodInfos
LogicalMethodInfo[]

An array of type LogicalMethodInfo that specifies the Web methods for which the initializers are obtained.

Returns

Object[]

An array of initializer objects corresponding to the input array of method definitions for a specified class derived from MimeFormatter.

Remarks

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

The static GetInitializers method causes the invocation of the GetInitializer method belonging to the derived class specified by the type parameter.

Applies to