Share via


DomainService.ServiceContext Property

[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.]

Gets the active DomainServiceContext for this DomainService.

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

Syntax

'Declaration
Protected ReadOnly Property ServiceContext As DomainServiceContext
    Get
'Usage
Dim value As DomainServiceContext

value = Me.ServiceContext
protected DomainServiceContext ServiceContext { get; }
protected:
property DomainServiceContext^ ServiceContext {
    DomainServiceContext^ get ();
}
member ServiceContext : DomainServiceContext
function get ServiceContext () : DomainServiceContext

Property Value

Type: System.ServiceModel.DomainServices.Server.DomainServiceContext
The active DomainServiceContext for this DomainService.

See Also

Reference

DomainService Class

System.ServiceModel.DomainServices.Server Namespace