ServiceMetadataContractBehavior Class
TOC
Collapse the table of content
Expand the table of content

ServiceMetadataContractBehavior Class

.NET Framework (current version)
 

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

Namespace:   System.ServiceModel.Description
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

System.Object
  System.ServiceModel.Description.ServiceMetadataContractBehavior

public sealed class ServiceMetadataContractBehavior : IContractBehavior

NameDescription
System_CAPS_pubmethodServiceMetadataContractBehavior()

Initializes a new instance of the ServiceMetadataContractBehavior.

System_CAPS_pubmethodServiceMetadataContractBehavior(Boolean)

Initializes a new instance of the ServiceMetadataContractBehavior.

NameDescription
System_CAPS_pubpropertyMetadataGenerationDisabled

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

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIContractBehavior.AddBindingParameters(ContractDescription, ServiceEndpoint, BindingParameterCollection)

Configures binding elements to support the contract behavior.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIContractBehavior.ApplyClientBehavior(ContractDescription, ServiceEndpoint, ClientRuntime)

Implements a modification of a client across a contract.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIContractBehavior.ApplyDispatchBehavior(ContractDescription, ServiceEndpoint, DispatchRuntime)

Implements a modification of the service runtime across a contract.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIContractBehavior.Validate(ContractDescription, ServiceEndpoint)

Confirms the contract and endpoint can support the contract behavior.

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.

.NET Framework
Available since 4.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft