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
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
- databaseCategory
Type: System.String
- func
Type: System.Func<TComponent, TResult>
Return Value
Type: TResult
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.