WsdlEndpointConversionContext 类
定义
传递给自定义 WSDL 导出程序和导入程序,可以为 WSDL 终结点自定义元数据导出过程和导入过程。Passed to custom WSDL exporters and importers to enable customization of the metadata export and import processes for a WSDL endpoint.
public ref class WsdlEndpointConversionContext
public class WsdlEndpointConversionContext
type WsdlEndpointConversionContext = class
Public Class WsdlEndpointConversionContext
- 继承
-
WsdlEndpointConversionContext
注解
WsdlEndpointConversionContext 类表示上下文;在该上下文中,或者使用 System.ServiceModel.Description.IWsdlExportExtension 导出终结点的自定义 WSDL,或者使用 System.ServiceModel.Description.IWsdlImportExtension 将终结点的自定义 WSDL 导入。The WsdlEndpointConversionContext class represents the context in which the custom WSDL for an endpoint is either exported using System.ServiceModel.Description.IWsdlExportExtension or imported using System.ServiceModel.Description.IWsdlImportExtension.
您可以利用下面的属性来检索当前 WSDL 的 WSDL 文档对象模型:The following properties enable you to retrieve the WSDL document object model for the current WSDL:
ContractConversionContext 属性可以获取终结点协定的 System.ServiceModel.Description.WsdlContractConversionContext。The ContractConversionContext property gets the System.ServiceModel.Description.WsdlContractConversionContext for the endpoint contract.
Endpoint 属性可以获取当前终结点的 System.ServiceModel.Description.ServiceEndpoint。The Endpoint property gets the System.ServiceModel.Description.ServiceEndpoint for the current endpoint.
WsdlBinding 属性可以获取当前终结点的绑定。The WsdlBinding property gets the binding for the current endpoint.
WsdlPort 属性可以获取当前终结点的端口。The WsdlPort property gets the port for the current endpoint.
您可以使用下面的方法,将自定义 WSDL 元素添加到已导出或导入 WSDL 中的适当范围,或者从中移除自定义 WSDL 元素:The following methods enable you to add or remove custom WSDL elements to the appropriate scopes in the exported or imported WSDL:
GetFaultBinding 方法可以返回指定错误的错误绑定。The GetFaultBinding method returns the fault binding for the specified fault.
GetFaultDescription 方法可以返回指定错误绑定的错误。The GetFaultDescription method returns the fault for the specified fault binding.
GetMessageBinding 方法可以返回指定消息的消息绑定。The GetMessageBinding method returns the message binding for the specified message.
GetMessageDescription 方法可以返回指定消息绑定的消息。The GetMessageDescription method returns the message for the specified message binding.
GetOperationBinding 方法可以返回指定操作的操作绑定。The GetOperationBinding method returns the operation binding for the specified operation.
GetOperationDescription 方法可以返回指定操作绑定的操作。The GetOperationDescription method returns the operation for the specified operation binding.
属性
| ContractConversionContext |
获取正在被导出或导入的 WsdlContractConversionContext。Gets the WsdlContractConversionContext being exported or imported. |
| Endpoint |
获取正在被导出或导入的 ServiceEndpoint。Gets the ServiceEndpoint being exported or imported. |
| WsdlBinding |
获取 WSDL 终结点的 Binding。Gets the Binding for the WSDL endpoint. |
| WsdlPort |
方法
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetFaultBinding(FaultDescription) |
获取与该错误关联的 WSDL 绑定。Gets the WSDL binding associated with the fault. |
| GetFaultDescription(FaultBinding) |
获取与 WSDL 错误绑定关联的错误的说明。Gets the description for the fault associated with the WSDL fault binding. |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetMessageBinding(MessageDescription) |
获取由该说明指定的消息的 WSDL 绑定。Gets the WSDL binding for the message specified by the description. |
| GetMessageDescription(MessageBinding) |
获取由 WSDL 绑定指定的消息的消息说明。Gets the message description for the message specified by the WSDL binding. |
| GetOperationBinding(OperationDescription) |
获取由该说明指定的操作的 WSDL 绑定。Gets the WSDL binding for the operation specified by the description. |
| GetOperationDescription(OperationBinding) |
返回与 WSDL 绑定关联的操作的操作说明。Returns the operation description of the operation associated with the WSDL binding. |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |