SqlCeProviderFactory.IServiceProvider.GetService Method
Gets the service type.
Namespace: System.Data.SqlServerCe
Assembly: System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)
Syntax
'Declaration
<SecurityCriticalAttribute> _
<SecurityTreatAsSafeAttribute> _
Private Function GetService ( _
serviceType As Type _
) As Object Implements IServiceProvider.GetService
'Usage
Dim instance As SqlCeProviderFactory
Dim serviceType As Type
Dim returnValue As Object
returnValue = CType(instance, IServiceProvider).GetService(serviceType)
[SecurityCriticalAttribute]
[SecurityTreatAsSafeAttribute]
Object IServiceProvider.GetService(
Type serviceType
)
[SecurityCriticalAttribute]
[SecurityTreatAsSafeAttribute]
private:
virtual Object^ GetService(
Type^ serviceType
) sealed = IServiceProvider::GetService
[<SecurityCriticalAttribute>]
[<SecurityTreatAsSafeAttribute>]
private abstract GetService :
serviceType:Type -> Object
[<SecurityCriticalAttribute>]
[<SecurityTreatAsSafeAttribute>]
private override GetService :
serviceType:Type -> Object
JScript supports the use of explicit interface implementations, but not the declarations of new ones.
Parameters
- serviceType
Type: System.Type
The service type.
Return Value
Type: System.Object
Returns Object.
Implements
IServiceProvider.GetService(Type)