DomainServiceContext Constructor
[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.]
Initializes a new instance of the DomainServiceContext class.
Namespace: System.ServiceModel.DomainServices.Server
Assembly: System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)
Syntax
'Declaration
Public Sub New ( _
serviceProvider As IServiceProvider, _
operationType As DomainOperationType _
)
'Usage
Dim serviceProvider As IServiceProvider
Dim operationType As DomainOperationType
Dim instance As New DomainServiceContext(serviceProvider, _
operationType)
public DomainServiceContext(
IServiceProvider serviceProvider,
DomainOperationType operationType
)
public:
DomainServiceContext(
IServiceProvider^ serviceProvider,
DomainOperationType operationType
)
new :
serviceProvider:IServiceProvider *
operationType:DomainOperationType -> DomainServiceContext
public function DomainServiceContext(
serviceProvider : IServiceProvider,
operationType : DomainOperationType
)
Parameters
- serviceProvider
Type: System.IServiceProvider
A service provider.
- operationType
Type: System.ServiceModel.DomainServices.Server.DomainOperationType
The type of operation that is being executed.