IServiceProvider.GetService 方法
命名空間: System.Data.SqlServerCe
組件: System.Data.SqlServerCe (在 System.Data.SqlServerCe.dll 中)
語法
'宣告
Private Function GetService ( _
serviceType As Type _
) As Object Implements IServiceProvider.GetService
'用途
Dim instance As SqlCeProviderFactory
Dim serviceType As Type
Dim returnValue As Object
returnValue = CType(instance, IServiceProvider).GetService(serviceType)
Object IServiceProvider.GetService(
Type serviceType
)
private:
virtual Object^ GetService(
Type^ serviceType
) sealed = IServiceProvider::GetService
private abstract GetService :
serviceType:Type -> Object
private override GetService :
serviceType:Type -> Object
JScript 支援使用明確介面實作,但不支援新的宣告。
參數
- serviceType
型別:System. . :: . .Type
傳回值
實作
IServiceProvider. . :: . .GetService(Type)