Condividi tramite


TeamFoundationResourceManagementService.TryGetServiceVersionRaw<TComponent> Method

Retrieves a service version entry and component creator for a given component from the database. No caches are used.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
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
public:
generic<typename TComponent>
where TComponent : gcnew(), TeamFoundationSqlResourceComponent 
static bool TryGetServiceVersionRaw(
    String^ connectionString, 
    [OutAttribute] ServiceVersionEntry^% serviceVersionEntry, 
    [OutAttribute] IComponentCreator^% componentCreator, 
    bool handleNoResourceManagementSchema
)
static member TryGetServiceVersionRaw : 
        connectionString:string * 
        serviceVersionEntry:ServiceVersionEntry byref * 
        componentCreator:IComponentCreator byref * 
        handleNoResourceManagementSchema:bool -> bool   when 'TComponent : new() and TeamFoundationSqlResourceComponent
JScript does not support generic types or methods.

Type Parameters

  • TComponent

Parameters

  • connectionString
    Type: System.String

    database connection string

Return Value

Type: System.Boolean

Remarks

If a transitionCreator component is registered, componentCreator will be set even if serviceVersionEntry is null.

.NET Framework Security

See Also

Reference

TeamFoundationResourceManagementService Class

Microsoft.TeamFoundation.Framework.Server Namespace