ServiceMetadataContractBehavior 类
定义
使您能够指定是否为给定终结点发布元数据的协定行为。A contract behavior that enables you to specify whether or not to publish metadata for a given endpoint.
public ref class ServiceMetadataContractBehavior sealed : System::ServiceModel::Description::IContractBehavior
public sealed class ServiceMetadataContractBehavior : System.ServiceModel.Description.IContractBehavior
type ServiceMetadataContractBehavior = class
interface IContractBehavior
Public NotInheritable Class ServiceMetadataContractBehavior
Implements IContractBehavior
- 继承
-
ServiceMetadataContractBehavior
- 实现
注解
可以使用此功能在服务的 WSDL 中禁用终结点元数据的发布。You can use this feature to disable the publishing of endpoint metadata in your service's WSDL. 这对于仅包含不采用 SOAP 消息的操作的终结点特别有用。This is particularly useful for endpoints consisting only of operations which don't take SOAP messages.
构造函数
| ServiceMetadataContractBehavior() |
初始化 ServiceMetadataContractBehavior 的新实例。Initializes a new instance of the ServiceMetadataContractBehavior. |
| ServiceMetadataContractBehavior(Boolean) |
初始化 ServiceMetadataContractBehavior 的新实例。Initializes a new instance of the ServiceMetadataContractBehavior. |
属性
| MetadataGenerationDisabled |
获取或设置一个值,该值指定是否应对终结点禁用元数据生成。Gets or sets a value that specifies whether metadata generation should be disabled for the endpoint. |
方法
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| 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) |
显式接口实现
| IContractBehavior.AddBindingParameters(ContractDescription, ServiceEndpoint, BindingParameterCollection) |
配置绑定元素以支持协定行为。Configures binding elements to support the contract behavior. |
| IContractBehavior.ApplyClientBehavior(ContractDescription, ServiceEndpoint, ClientRuntime) |
在协定范围内实现客户端的修改。Implements a modification of a client across a contract. |
| IContractBehavior.ApplyDispatchBehavior(ContractDescription, ServiceEndpoint, DispatchRuntime) |
在协定范围内实现服务运行时的修改。Implements a modification of the service runtime across a contract. |
| IContractBehavior.Validate(ContractDescription, ServiceEndpoint) |
确认协定和终结点是否支持协定行为。Confirms the contract and endpoint can support the contract behavior. |