IDatabaseProjectNode.GetService 方法

因此,调用方可以提供数据库服务,挂钩到 GetService。

命名空间:  Microsoft.VisualStudio.Data.Schema.Package.Project
程序集:  Microsoft.VisualStudio.Data.Schema.Package(在 Microsoft.VisualStudio.Data.Schema.Package.dll 中)

语法

声明
Function GetService ( _
    type As Type _
) As Object
Object GetService(
    Type type
)
Object^ GetService(
    Type^ type
)
abstract GetService : 
        type:Type -> Object 
function GetService(
    type : Type
) : Object

参数

  • type
    类型:System.Type
    所请求的服务类型。

返回值

类型:System.Object
相应服务;如果未能找到该服务,则为 null。

.NET Framework 安全性

请参见

参考

IDatabaseProjectNode 接口

Microsoft.VisualStudio.Data.Schema.Package.Project 命名空间