Represents a complete, in-memory description of the service, including all the endpoints for the service and specifications for their respective addresses, bindings, contracts and behaviors.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Thetype exposes the following members.
|Behaviors||Gets the behaviors associated with the service.|
|ConfigurationName||Gets or sets the name of the <service> configuration element.|
|Endpoints||Gets the collection of endpoints from the service description.|
|Name||Gets or sets the name of the service.|
|Namespace||Gets or sets the namespace for the service.|
|ServiceType||Gets the type of the service.|
|Equals(Object)||Determines whether the specified Object is equal to the current Object. (Inherited from Object.)|
|GetHashCode||Serves as a hash function for a particular type. (Inherited from Object.)|
|GetService(Object)||Returns a service description initialized with a specified service object.|
|GetService(Type)||Returns a service description initialized with a specified service type.|
|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.)|
The information contained in the is used by the system to building the run-time components for the service.
Use this method when adding custom behaviors to extend ServiceHost. Programmatically, you must Add(T) the custom service behavior to the Behaviors prior to when you call the Open method on the ServiceHost object.
Export metadata about a service endpoint by passing ServiceEndpoint as a parameter to ExportEndpoint(ServiceEndpoint). After calling this method, or one of the other export methods provided by WsdlExporter, use the GeneratedWsdlDocuments property to return the collection of ServiceDescription objects.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2