Editar

Partilhar via


ServiceMetadataExtension Class

Definition

Provides the implementation for the metadata publishing protocols.

public ref class ServiceMetadataExtension : System::ServiceModel::IExtension<System::ServiceModel::ServiceHostBase ^>
public class ServiceMetadataExtension : System.ServiceModel.IExtension<System.ServiceModel.ServiceHostBase>
type ServiceMetadataExtension = class
    interface IExtension<ServiceHostBase>
Public Class ServiceMetadataExtension
Implements IExtension(Of ServiceHostBase)
Inheritance
ServiceMetadataExtension
Implements

Remarks

The ServiceMetadataExtension is configured and used by configuring a service with the System.ServiceModel.Description.ServiceMetadataBehavior.

You can also use the ServiceMetadataExtension class to get the service's metadata at runtime by accessing the Metadata property.

Constructors

ServiceMetadataExtension()

Creates an instance of a ServiceMetadataExtension object.

Properties

Metadata

Gets the service's metadata at runtime.

SingleWsdl

Gets the single WSDL used by the service.

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

IExtension<ServiceHostBase>.Attach(ServiceHostBase)

Enables an object to participate in custom behavior. Called when the runtime attaches the extension to an instance of the ServiceHostBase class. For internal use only.

IExtension<ServiceHostBase>.Detach(ServiceHostBase)

Enables an object to participate in custom behavior. Called when the runtime detaches the extension from an instance of the InstanceContext class. For internal use only.

Applies to