Ler em inglês Editar

Partilhar via


ServiceMetadataContractBehavior Class

Definition

A contract behavior that enables you to specify whether or not to publish metadata for a given endpoint.

public sealed class ServiceMetadataContractBehavior : System.ServiceModel.Description.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

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

Produto Versões
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1