ServiceHost.InitializeDescription Méthode

Définition

Initialise une description du service hébergé basée sur son type ou son instance.Initializes a description of the service hosted based on its type or instance.

Surcharges

InitializeDescription(Object, UriSchemeKeyedCollection)

Initialise une description du service hébergé basée sur son instance et ses adresses de base spécifiées.Initializes a description of the service hosted based on its instance and specified base addresses.

InitializeDescription(Type, UriSchemeKeyedCollection)

Initialise une description du service hébergé basée sur son type et ses adresses de base spécifiées.Initializes a description of the service hosted based on its type and specified base addresses.

Remarques

Cette méthode supprime l’exigence pour passer les adresses de base dans le cadre de ServiceHost.This method removes the requirement for passing base addresses as part of ServiceHost. Les classes qui héritent de ServiceHost peuvent appeler ServiceHost, puis peuvent appeler l'une des InitializeDescription lorsqu'une adresse de base est disponible.Classes that inherit from ServiceHost can call ServiceHost and then can call one of the InitializeDescription when a base address is available. C'est ainsi que le Service Model Metadata Utility Tool (Svcutil.exe) est implémenté.This is how the Service Model Metadata Utility Tool (Svcutil.exe) is implemented.

InitializeDescription(Object, UriSchemeKeyedCollection)

Initialise une description du service hébergé basée sur son instance et ses adresses de base spécifiées.Initializes a description of the service hosted based on its instance and specified base addresses.

protected:
 void InitializeDescription(System::Object ^ singletonInstance, System::ServiceModel::UriSchemeKeyedCollection ^ baseAddresses);
protected void InitializeDescription (object singletonInstance, System.ServiceModel.UriSchemeKeyedCollection baseAddresses);
override this.InitializeDescription : obj * System.ServiceModel.UriSchemeKeyedCollection -> unit
Protected Sub InitializeDescription (singletonInstance As Object, baseAddresses As UriSchemeKeyedCollection)

Paramètres

singletonInstance
Object

Instance du service hébergé.The instance of the hosted service.

baseAddresses
UriSchemeKeyedCollection

Le UriSchemeKeyedCollection qui contient les adresses de base pour le service hébergé.The UriSchemeKeyedCollection that contains the base addresses for the hosted service.

Exceptions

singletonInstance a la valeur null.singletonInstance is null.

InitializeDescription(Type, UriSchemeKeyedCollection)

Initialise une description du service hébergé basée sur son type et ses adresses de base spécifiées.Initializes a description of the service hosted based on its type and specified base addresses.

protected:
 void InitializeDescription(Type ^ serviceType, System::ServiceModel::UriSchemeKeyedCollection ^ baseAddresses);
protected void InitializeDescription (Type serviceType, System.ServiceModel.UriSchemeKeyedCollection baseAddresses);
override this.InitializeDescription : Type * System.ServiceModel.UriSchemeKeyedCollection -> unit
Protected Sub InitializeDescription (serviceType As Type, baseAddresses As UriSchemeKeyedCollection)

Paramètres

serviceType
Type

Le Type de service hébergé.The Type of service hosted.

baseAddresses
UriSchemeKeyedCollection

Le UriSchemeKeyedCollection qui contient les adresses de base pour le service hébergé.The UriSchemeKeyedCollection that contains the base addresses for the hosted service.

Exceptions

serviceType a la valeur null.serviceType is null.

S’applique à