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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。