ServiceMetadataContractBehavior ServiceMetadataContractBehavior ServiceMetadataContractBehavior ServiceMetadataContractBehavior Class

Definition

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
Inheritance
ServiceMetadataContractBehaviorServiceMetadataContractBehaviorServiceMetadataContractBehaviorServiceMetadataContractBehavior
Implements

Remarks

You can use this feature to disable the publishing of endpoint metadata in your service's WSDL. This is particularly useful for endpoints consisting only of operations which don't take SOAP messages.

Constructors

ServiceMetadataContractBehavior() ServiceMetadataContractBehavior() ServiceMetadataContractBehavior() ServiceMetadataContractBehavior()

Initializes a new instance of the ServiceMetadataContractBehavior.

ServiceMetadataContractBehavior(Boolean) ServiceMetadataContractBehavior(Boolean) ServiceMetadataContractBehavior(Boolean) ServiceMetadataContractBehavior(Boolean)

Initializes a new instance of the ServiceMetadataContractBehavior.

Properties

MetadataGenerationDisabled MetadataGenerationDisabled MetadataGenerationDisabled MetadataGenerationDisabled

Gets or sets a value that specifies whether metadata generation should be disabled for the endpoint.

Explicit Interface Implementations

IContractBehavior.AddBindingParameters(ContractDescription, ServiceEndpoint, BindingParameterCollection) IContractBehavior.AddBindingParameters(ContractDescription, ServiceEndpoint, BindingParameterCollection) IContractBehavior.AddBindingParameters(ContractDescription, ServiceEndpoint, BindingParameterCollection) IContractBehavior.AddBindingParameters(ContractDescription, ServiceEndpoint, BindingParameterCollection)

Configures binding elements to support the contract behavior.

IContractBehavior.ApplyClientBehavior(ContractDescription, ServiceEndpoint, ClientRuntime) IContractBehavior.ApplyClientBehavior(ContractDescription, ServiceEndpoint, ClientRuntime) IContractBehavior.ApplyClientBehavior(ContractDescription, ServiceEndpoint, ClientRuntime) IContractBehavior.ApplyClientBehavior(ContractDescription, ServiceEndpoint, ClientRuntime)

Implements a modification of a client across a contract.

IContractBehavior.ApplyDispatchBehavior(ContractDescription, ServiceEndpoint, DispatchRuntime) IContractBehavior.ApplyDispatchBehavior(ContractDescription, ServiceEndpoint, DispatchRuntime) IContractBehavior.ApplyDispatchBehavior(ContractDescription, ServiceEndpoint, DispatchRuntime) IContractBehavior.ApplyDispatchBehavior(ContractDescription, ServiceEndpoint, DispatchRuntime)

Implements a modification of the service runtime across a contract.

IContractBehavior.Validate(ContractDescription, ServiceEndpoint) IContractBehavior.Validate(ContractDescription, ServiceEndpoint) IContractBehavior.Validate(ContractDescription, ServiceEndpoint) IContractBehavior.Validate(ContractDescription, ServiceEndpoint)

Confirms the contract and endpoint can support the contract behavior.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to