ServiceMetadataContractBehavior Class
A contract behavior that enables you to specify whether or not to publish metadata for a given endpoint.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
| Name | Description | |
|---|---|---|
![]() | ServiceMetadataContractBehavior() | Initializes a new instance of the ServiceMetadataContractBehavior. |
![]() | ServiceMetadataContractBehavior(Boolean) | Initializes a new instance of the ServiceMetadataContractBehavior. |
| Name | Description | |
|---|---|---|
![]() | MetadataGenerationDisabled | Gets or sets a value that specifies whether metadata generation should be disabled for the endpoint. |
| Name | Description | |
|---|---|---|
![]() | 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() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | 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. |
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.
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.



