Delen via


TeamFoundationResourceManagementService.CreateComponentExecuteFuncAndDispose<TComponent, TResult> Method

Creates a component that can be used to communicate to the current version of the database, executes a delegate specified by the action parameter and disposes a component. This method will retry an action up to 10 times if database version has changed between the time when component was created and execut.

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

Syntax

'Declaration
Public Function CreateComponentExecuteFuncAndDispose(Of TComponent As TeamFoundationSqlResourceComponent, TResult) ( _
    requestContext As TeamFoundationRequestContext, _
    databaseCategory As String, _
    func As Func(Of TComponent, TResult) _
) As TResult
public TResult CreateComponentExecuteFuncAndDispose<TComponent, TResult>(
    TeamFoundationRequestContext requestContext,
    string databaseCategory,
    Func<TComponent, TResult> func
)
where TComponent : TeamFoundationSqlResourceComponent
public:
generic<typename TComponent, typename TResult>
where TComponent : TeamFoundationSqlResourceComponent
TResult CreateComponentExecuteFuncAndDispose(
    TeamFoundationRequestContext^ requestContext, 
    String^ databaseCategory, 
    Func<TComponent, TResult>^ func
)
member CreateComponentExecuteFuncAndDispose : 
        requestContext:TeamFoundationRequestContext * 
        databaseCategory:string * 
        func:Func<'TComponent, 'TResult> -> 'TResult  when 'TComponent : TeamFoundationSqlResourceComponent
JScript does not support generic types or methods.

Type Parameters

  • TComponent
  • TResult

Parameters

Return Value

Type: TResult
Returns [{0}].

.NET Framework Security

See Also

Reference

TeamFoundationResourceManagementService Class

Microsoft.TeamFoundation.Framework.Server Namespace