从数据库检索特定元素的一个服务发布项和组件创建者。不使用缓存。
命名空间: Microsoft.TeamFoundation.Framework.Server
程序集: Microsoft.TeamFoundation.Framework.Server(在 Microsoft.TeamFoundation.Framework.Server.dll 中)
语法
声明
Public Shared Function TryGetServiceVersionRaw(Of TComponent As {New, TeamFoundationSqlResourceComponent}) ( _
connectionString As String, _
<OutAttribute> ByRef serviceVersionEntry As ServiceVersionEntry, _
<OutAttribute> ByRef componentCreator As IComponentCreator, _
handleNoResourceManagementSchema As Boolean _
) As Boolean
public static bool TryGetServiceVersionRaw<TComponent>(
string connectionString,
out ServiceVersionEntry serviceVersionEntry,
out IComponentCreator componentCreator,
bool handleNoResourceManagementSchema
)
where TComponent : new(), TeamFoundationSqlResourceComponent
类型参数
- TComponent
参数
- connectionString
类型:System.String
数据库连接字符串
- serviceVersionEntry
类型:Microsoft.TeamFoundation.Framework.Server.ServiceVersionEntry%
从数据库或空service release项;如果未找到。
- componentCreator
类型:Microsoft.TeamFoundation.Framework.Server.IComponentCreator%
可用于创建该关联的控制元素的IComponentCreator或null;如果找不到匹配的一个。
- handleNoResourceManagementSchema
类型:System.Boolean
返回值
备注
如果transitionCreator元素注册,componentCreator进行设置,即使serviceVersionEntry为空。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。