Condividi tramite


TeamFoundationResourceManagementService.TryCreateComponentRaw<TComponent> Method

Creates a versioned component by reading the service version 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 TryCreateComponentRaw(Of TComponent As {New, TeamFoundationSqlResourceComponent}) ( _
    connectionString As String, _
    commandTimeout As Integer, _
    deadlockPause As Integer, _
    maxDeadlockRetries As Integer, _
    <OutAttribute> ByRef component As TComponent, _
    handleNoResourceManagementSchema As Boolean _
) As Boolean
public static bool TryCreateComponentRaw<TComponent>(
    string connectionString,
    int commandTimeout,
    int deadlockPause,
    int maxDeadlockRetries,
    out TComponent component,
    bool handleNoResourceManagementSchema
)
where TComponent : new(), TeamFoundationSqlResourceComponent
public:
generic<typename TComponent>
where TComponent : gcnew(), TeamFoundationSqlResourceComponent 
static bool TryCreateComponentRaw(
    String^ connectionString, 
    int commandTimeout, 
    int deadlockPause, 
    int maxDeadlockRetries, 
    [OutAttribute] TComponent% component, 
    bool handleNoResourceManagementSchema
)
static member TryCreateComponentRaw : 
        connectionString:string * 
        commandTimeout:int * 
        deadlockPause:int * 
        maxDeadlockRetries:int * 
        component:'TComponent byref * 
        handleNoResourceManagementSchema:bool -> bool   when 'TComponent : new() and TeamFoundationSqlResourceComponent
JScript does not support generic types or methods.

Type Parameters

  • TComponent

Parameters

  • component
    Type: TComponent%

Return Value

Type: System.Boolean

.NET Framework Security

See Also

Reference

TeamFoundationResourceManagementService Class

Microsoft.TeamFoundation.Framework.Server Namespace