Freigeben über


DomainServiceProxy.Create (generische Methode ())

Erstellt eine Domänendienst-Proxyinstanz, die eine Domänendienst-Vertragsschnittstelle implementiert.

Namespace: Microsoft.ServiceModel.DomainServices.Hosting.Local
Assembly: Microsoft.ServiceModel.DomainServices.Hosting.Local (in microsoft.servicemodel.domainservices.hosting.local.dll)

Verwendung

'Usage
Dim returnValue As TDomainServiceContract

returnValue = DomainServiceProxy.Create

Syntax

'Declaration
Public Shared Function Create(Of TDomainServiceContract As IDisposable, TDomainService As DomainService) As TDomainServiceContract
public static TDomainServiceContract Create<TDomainServiceContract,TDomainService> () where TDomainServiceContract : IDisposable where TDomainService : DomainService
public:
generic<typename TDomainServiceContract, typename TDomainService> where TDomainServiceContract : IDisposable where TDomainService : DomainService
static TDomainServiceContract Create ()

GenericParameters

  • TDomainServiceContract
    Die Domänendienst-Vertragsschnittstelle.
  • TDomainService
    Der Domänendiensttyp, der die TDomainServiceContract-Schnittstelle implementiert.

Rückgabewert

Eine TDomainService-Proxyinstanz, die TDomainServiceContract implementiert.

Threadsicherheit

Alle öffentlichen statischen (Shared in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht sichergestellt.

Plattformen

Entwicklungsplattformen

Windows XP Home Edition, Windows XP Professional, Windows Server 2003 , Windows Server 2008 und Windows 2000

Zielplattformen

Siehe auch

Verweis

DomainServiceProxy-Klasse
DomainServiceProxy-Member
Microsoft.ServiceModel.DomainServices.Hosting.Local-Namespace