Share via


IDomainServiceFactory.CreateDomainService Method

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Creates a new DomainService instance.

Namespace:  System.ServiceModel.DomainServices.Server
Assembly:  System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)

Syntax

'Declaration
Function CreateDomainService ( _
    domainServiceType As Type, _
    context As DomainServiceContext _
) As DomainService
'Usage
Dim instance As IDomainServiceFactory
Dim domainServiceType As Type
Dim context As DomainServiceContext
Dim returnValue As DomainService

returnValue = instance.CreateDomainService(domainServiceType, _
    context)
DomainService CreateDomainService(
    Type domainServiceType,
    DomainServiceContext context
)
DomainService^ CreateDomainService(
    Type^ domainServiceType, 
    DomainServiceContext^ context
)
abstract CreateDomainService : 
        domainServiceType:Type * 
        context:DomainServiceContext -> DomainService 
function CreateDomainService(
    domainServiceType : Type, 
    context : DomainServiceContext
) : DomainService

Parameters

Return Value

Type: System.ServiceModel.DomainServices.Server.DomainService
A DomainService instance.

See Also

Reference

IDomainServiceFactory Interface

System.ServiceModel.DomainServices.Server Namespace