Modifica

Condividi tramite


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
ServiceMetadataContractBehavior
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()

Initializes a new instance of the ServiceMetadataContractBehavior.

ServiceMetadataContractBehavior(Boolean)

Initializes a new instance of the ServiceMetadataContractBehavior.

Properties

MetadataGenerationDisabled

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

Methods

Equals(Object)

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

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

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.

Applies to