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 扩展的配置方式,它可以在采用的方法中查找有关 XML Web service 方法的详细信息 GetInitializer SoapExtension LogicalMethodInfo 。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. LogicalMethodInfo通过 Parameters 使用属性访问应用于 XML Web service 方法的属性和任何自定义属性,提供 XML Web service 方法的参数等详细信息 GetCustomAttributes 。The 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 方法的 |
| AsyncResultParameter |
获取 |
| AsyncStateParameter |
获取异步调用中 |
| BeginMethodInfo |
获取异步调用中 |
| CustomAttributeProvider |
获取应用于方法的自定义特性。Gets the custom attributes applied to the method. |
| DeclaringType |
获取声明由当前的 LogicalMethodInfo 表示的方法的类。Gets the class that declares the method represented by the current LogicalMethodInfo. |
| EndMethodInfo |
获取对方法的异步调用的 |
| 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 的实例表示的方法的返回类型是否为 |
| 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() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| Invoke(Object, Object[]) |
调用由当前的 LogicalMethodInfo 表示的方法。Invokes the method represented by the current LogicalMethodInfo. |
| IsBeginMethod(MethodInfo) |
返回一个值,该值指示传入的方法是否表示异步调用的 |
| IsEndMethod(MethodInfo) |
返回一个值,该值指示传入的方法是否表示异步调用的 |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ToString() |
返回表示当前 LogicalMethodInfo 的字符串。Returns a string that represents the current LogicalMethodInfo. |