SoapExtensionReflector 类

定义

为类提供通用接口和功能,以按方法向 ServiceDescription 对象添加 SOAP 扩展信息。Provides a common interface and functionality for classes to add SOAP extension information to a ServiceDescription object on a per-method basis.

public ref class SoapExtensionReflector abstract
public abstract class SoapExtensionReflector
type SoapExtensionReflector = class
Public MustInherit Class SoapExtensionReflector
继承
SoapExtensionReflector

注解

抽象 SoapExtensionReflector 类公开抽象方法 ReflectMethodThe abstract SoapExtensionReflector class exposes an abstract method, ReflectMethod. 通过此抽象方法,派生类可以在将 Web 方法反射到对象中的对象时添加 SOAP 扩展的说明 ServiceDescriptionThis abstract method allows a derived class to add descriptions of SOAP extensions when reflecting a Web method into objects that are placed in a ServiceDescription object. 方法本身不是输入。The method itself is not an input. 对于属于生成的指定绑定的所有 Web 方法,将会添加描述 ServiceDescriptionThe descriptions get added for all Web methods belonging to a specified binding that produces a ServiceDescription.

您可以使用 ServiceDescription 通过方法生成 Web 服务描述语言(WSDL)文档 WriteYou can use a ServiceDescription to generate a Web Services Description Language (WSDL) document via the Write method. ServiceDescriptionImporter类和相关类也可以使用 ServiceDescription 来生成客户端代理代码或抽象服务器代码。The ServiceDescriptionImporter class and related classes can also use a ServiceDescription to generate client proxy code or abstract server code.

使用派生自类的类 SoapExtensionReflector 与从抽象类派生的类结合使用 SoapExtension ,以扩展客户端或服务上的 SOAP 消息的运行时处理。Use a class derived from the SoapExtensionReflector class in conjunction with a class derived from the abstract SoapExtension class to extend run-time processing of SOAP messages on the client or service.

可以 SoapExtensionReflector 通过 <soapExtensionReflectorTypes> 元素元素及其子add元素在配置文件中指定。You can specify SoapExtensionReflector in a configuration file via the <soapExtensionReflectorTypes> Element element and its child add element. 你还可以将配置应用到发布 Web 服务的 ASP.NET Web 应用程序。You can also apply the configuration to an ASP.NET Web application that publishes a Web service.

构造函数

SoapExtensionReflector()

初始化 SoapExtensionReflector 类的实例。Initializes an instance of the SoapExtensionReflector class.

属性

ReflectionContext

获取或设置从调用 ProtocolReflector 方法的 ReflectMethod() 抽象类派生的类的实例。Gets or sets the instance of a class derived from the abstract ProtocolReflector class that invokes the ReflectMethod() method.

方法

Equals(Object)

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

(继承自 Object)
GetHashCode()

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

(继承自 Object)
GetType()

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

(继承自 Object)
MemberwiseClone()

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

(继承自 Object)
ReflectDescription()

生成将放入与绑定对应的 ServiceDescription 对象中的特定于服务的说明信息。Generates service-specific description information that gets placed in a ServiceDescription object corresponding to a binding.

ReflectMethod()

Abstract 方法,派生类必须实现该方法以按方法向 ServiceDescription 对象添加 SOAP 扩展信息。Abstract method that a derived class must implement to add SOAP extension information to a ServiceDescription object on a per-method basis.

ToString()

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

(继承自 Object)

适用于

另请参阅