共用方式為


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

參數

傳回值

型別:System.Boolean

備註

如果 transitionCreator 登錄元件,會設定 componentCreator,即使 serviceVersionEntry 是空的。

.NET Framework 安全性

請參閱

參考

TeamFoundationResourceManagementService 類別

Microsoft.TeamFoundation.Framework.Server 命名空間