TeamFoundationResourceManagementService.TryGetServiceVersionRaw<TComponent> 方法
從資料庫擷取一特定元件的服務版本項目和元件建立者。 不使用快取。
命名空間: 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%
從資料庫或空的服務版本項目,如果找不到。
- componentCreator
類型:Microsoft.TeamFoundation.Framework.Server.IComponentCreator%
可以用來建立關聯的 IComponentCreator 版本元件則為,如果找不到符合。
- handleNoResourceManagementSchema
類型:System.Boolean
傳回值
備註
如果 transitionCreator 元件註冊, componentCreator 將設定,即使 serviceVersionEntry 是空的。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。