Partager via


Méthode DataServiceHostFactory.CreateServiceHost (Type, array<Uri[])

Crée un nouvel DataServiceHost à partir de l'URI.

Espace de noms :  System.Data.Services
Assembly :  Microsoft.Data.Services (en Microsoft.Data.Services.dll)

Syntaxe

'Déclaration
Protected Overrides Function CreateServiceHost ( _
    serviceType As Type, _
    baseAddresses As Uri() _
) As ServiceHost
'Utilisation
Dim serviceType As Type
Dim baseAddresses As Uri()
Dim returnValue As ServiceHost

returnValue = Me.CreateServiceHost(serviceType, _
    baseAddresses)
protected override ServiceHost CreateServiceHost(
    Type serviceType,
    Uri[] baseAddresses
)
protected:
virtual ServiceHost^ CreateServiceHost(
    Type^ serviceType, 
    array<Uri^>^ baseAddresses
) override
abstract CreateServiceHost : 
        serviceType:Type * 
        baseAddresses:Uri[] -> ServiceHost 
override CreateServiceHost : 
        serviceType:Type * 
        baseAddresses:Uri[] -> ServiceHost 
protected override function CreateServiceHost(
    serviceType : Type, 
    baseAddresses : Uri[]
) : ServiceHost

Paramètres

  • serviceType
    Type : System.Type
    Spécifie le type de service WCF à héberger.
  • baseAddresses
    Type : array<System.Uri[]
    Tableau d'adresses de base du service.

Valeur de retour

Type : System.ServiceModel.ServiceHost
Nouveau DataServiceHost.

Voir aussi

Référence

DataServiceHostFactory Classe

Surcharge CreateServiceHost

Espace de noms System.Data.Services