LogicalMethodInfo 类

定义

表示 XML Web services 方法的特性和元数据。Represents the attributes and metadata for an XML Web service method. 此类不能被继承。This class cannot be inherited.

public ref class LogicalMethodInfo sealed
public sealed class LogicalMethodInfo
type LogicalMethodInfo = class
Public NotInheritable Class LogicalMethodInfo
继承
LogicalMethodInfo

注解

LogicalMethodInfo主要由 SOAP 扩展使用,用来询问将 SOAP 扩展配置为运行的 XML Web service 方法的详细信息。LogicalMethodInfo is used primarily by a SOAP extension to interrogate the details of the XML Web service method with which the SOAP extension is configured to run. 根据 SOAP 扩展的配置方式,它可以在采用GetInitializer LogicalMethodInfoSoapExtension方法中查找有关 XML Web service 方法的详细信息。Depending on how the SOAP extension is configured, it can find out details about the XML Web service method in the GetInitializer method of SoapExtension that takes a LogicalMethodInfo. Parameters通过使用属性GetCustomAttributes访问应用于 XML Web service 方法的属性和任何自定义属性,提供XMLWebservice方法的参数等详细信息。LogicalMethodInfoThe LogicalMethodInfo provides details such as the XML Web service method's parameters by accessing the Parameters property and any custom attributes applied to the XML Web service method using the GetCustomAttributes property.

有关 soap 扩展的更多详细信息SoapExtension ,请参阅使用 SOAP 扩展修改类或 soap 消息For more details on SOAP extensions see the SoapExtension class or SOAP Message Modification Using SOAP Extensions.

构造函数

LogicalMethodInfo(MethodInfo)

用传入的 LogicalMethodInfo 初始化 MethodInfo 类的新实例。Initializes a new instance of the LogicalMethodInfo class with the MethodInfo passed in.

属性

AsyncCallbackParameter

获取异步调用中 Begin 方法的 AsyncCallback 参数的参数信息。Gets the parameter information for the AsyncCallback parameter of a Begin method in an asynchronous invocation.

AsyncResultParameter

获取 Begin 异步方法调用的返回值。Gets the return value of a Begin asynchronous method invocation.

AsyncStateParameter

获取异步调用中 Begin 方法的 AsyncState 参数的参数信息。Gets the parameter information for the AsyncState parameter of a Begin method in an asynchronous invocation.

BeginMethodInfo

获取异步调用中 Begin 方法的特性和元数据。Gets the attributes and metadata for a Begin method in an asynchronous invocation.

CustomAttributeProvider

获取应用于方法的自定义特性。Gets the custom attributes applied to the method.

DeclaringType

获取声明由当前的 LogicalMethodInfo 表示的方法的类。Gets the class that declares the method represented by the current LogicalMethodInfo.

EndMethodInfo

获取对方法的异步调用的 End 方法的特性和元数据。Gets the attributes and metadata for an End method of an asynchronous invocation to a method.

InParameters

获取传递到由 LogicalMethodInfo 的实例表示的方法中的参数。Gets the parameters passed into the method represented by the instance of LogicalMethodInfo.

IsAsync

获取一个值,该值指示由 LogicalMethodInfo 的实例表示的方法是否被异步调用。Gets a value indicating whether the method represented by the instance of LogicalMethodInfo is invoked asynchronously.

IsVoid

获取一个值,该值指示由 LogicalMethodInfo 的实例表示的方法的返回类型是否为 voidGets a value indicating whether the return type for the method represented by the instance of LogicalMethodInfo is void.

MethodInfo

获取同步方法的特性和元数据。Gets the attributes and metadata for a synchronous method.

Name

获取此 LogicalMethodInfo 表示的方法的名称。Gets the name of the method represented by this LogicalMethodInfo.

OutParameters

获取该方法的 out 参数。Gets the out parameters for the method.

Parameters

获取方法的参数。Gets the parameters for the method.

ReturnType

获取此方法的返回类型。Gets the return type of this method.

ReturnTypeCustomAttributeProvider

获取返回类型的自定义属性。Gets the custom attributes for the return type.

方法

BeginInvoke(Object, Object[], AsyncCallback, Object)

开始对由此 LogicalMethodInfo 表示的方法的异步调用。Begins an asynchronous invocation of the method represented by this LogicalMethodInfo.

Create(MethodInfo[])

根据给定的可以同时包含有关异步方法和同步方法的信息的 MethodInfo 数组,创建 LogicalMethodInfo 的数组。Given an array of MethodInfo that can contain information about both asynchronous and synchronous methods, creates an array of LogicalMethodInfo.

Create(MethodInfo[], LogicalMethodTypes)

根据给定的 MethodInfo 数组(其中 LogicalMethodInfo 的返回数组可以仅限于异步方法或同步方法)创建 LogicalMethodInfo 的数组。Given an array of MethodInfo, where the returned array of LogicalMethodInfo can be restricted to only asynchronous or synchronous methods, creates an array of LogicalMethodInfo.

EndInvoke(Object, IAsyncResult)

结束对由当前的 LogicalMethodInfo 表示的方法的异步调用。Ends an asynchronous invocation of the method represented by the current LogicalMethodInfo.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetCustomAttribute(Type)

返回应用于类型的第一个自定义特性(如果对该类型应用了任何自定义特性的话)。Returns the first custom attribute applied to the type, if any custom attributes are applied to the type.

GetCustomAttributes(Type)

返回应用于指定类型的自定义特性。Returns the custom attributes applied to the specified type.

GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
Invoke(Object, Object[])

调用由当前的 LogicalMethodInfo 表示的方法。Invokes the method represented by the current LogicalMethodInfo.

IsBeginMethod(MethodInfo)

返回一个值,该值指示传入的方法是否表示异步调用的 Begin 方法。Returns a value indicating whether the method passed in represents a Begin method of an asynchronous invocation.

IsEndMethod(MethodInfo)

返回一个值,该值指示传入的方法是否表示异步调用的 End 方法。Returns a value indicating whether the method passed in represents an End method of an asynchronous invocation.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前 LogicalMethodInfo 的字符串。Returns a string that represents the current LogicalMethodInfo.

适用于

另请参阅