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
- domainServiceType
Type: System.Type
The type of DomainService to create.
- context
Type: System.ServiceModel.DomainServices.Server.DomainServiceContext
The current DomainServiceContext.
Return Value
Type: System.ServiceModel.DomainServices.Server.DomainService
A DomainService instance.