Share via


TeamFoundationResourceManagementService.CreateComponentExecuteFuncAndDispose<TComponent, TResult> Method

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

.NET Framework Security

See Also

Reference

TeamFoundationResourceManagementService Class

Microsoft.TeamFoundation.Framework.Server Namespace