Share via


EntityFrameworkDataServiceProvider.GetService Method

Gets the service object of the specified type.

Namespace:  System.Data.Services.Providers
Assembly:  Microsoft.Data.Services (in Microsoft.Data.Services.dll)

Syntax

'Declaration
Public Overridable Function GetService ( _
    serviceType As Type _
) As Object
'Usage
Dim instance As EntityFrameworkDataServiceProvider 
Dim serviceType As Type 
Dim returnValue As Object 

returnValue = instance.GetService(serviceType)
public virtual Object GetService(
    Type serviceType
)
public:
virtual Object^ GetService(
    Type^ serviceType
)
abstract GetService : 
        serviceType:Type -> Object  
override GetService : 
        serviceType:Type -> Object
public function GetService(
    serviceType : Type
) : Object

Parameters

  • serviceType
    Type: System.Type
    An object that specifies the type of service object to get.

Return Value

Type: System.Object
A service object of type serviceType.-or- null if there is no service object of type serviceType.

Implements

IServiceProvider.GetService(Type)

See Also

Reference

EntityFrameworkDataServiceProvider Class

System.Data.Services.Providers Namespace