Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
InitializeDescription Method

ServiceHost.InitializeDescription Method

Initializes a description of the service hosted based on its type or instance.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Protected method InitializeDescription(UriSchemeKeyedCollection) Creates and initializes the service host with the contract and service descriptions. (Inherited from ServiceHostBase.)
Protected method InitializeDescription(Object, UriSchemeKeyedCollection) Initializes a description of the service hosted based on its instance and specified base addresses.
Protected method InitializeDescription(Type, UriSchemeKeyedCollection) Initializes a description of the service hosted based on its type and specified base addresses.
Top

This method removes the requirement for passing base addresses as part of ServiceHost. Classes that inherit from ServiceHost can call ServiceHost and then can call one of the InitializeDescription when a base address is available. This is how the Service Model Metadata Utility Tool (Svcutil.exe) is implemented.

Show:
© 2015 Microsoft