ValueCollectionParameterReader.GetInitializer(LogicalMethodInfo) 方法

定义

返回指定方法的初始值设定项。

public:
 override System::Object ^ GetInitializer(System::Web::Services::Protocols::LogicalMethodInfo ^ methodInfo);
public override object GetInitializer (System.Web.Services.Protocols.LogicalMethodInfo methodInfo);
override this.GetInitializer : System.Web.Services.Protocols.LogicalMethodInfo -> obj
Public Overrides Function GetInitializer (methodInfo As LogicalMethodInfo) As Object

参数

methodInfo
LogicalMethodInfo

LogicalMethodInfo,指定为其获取初始值设定项的 Web 方法。

返回

Object

一个表示 Web 方法的 LogicalMethodInfo

注解

方法返回的对象 GetInitializerInParameters 参数的属性 methodinfoInParameters属性值为类型的数组 ParameterInfo

GetInitializer方法在服务初始化过程中调用。 稍后,在处理请求时,会将初始值设定项对象传递到 Initialize 另一个实例的方法 ValueCollectionParameterReader 。 另一个实例执行实际的读取。

适用于