TeamFoundationRequestContext.CreateComponent<TComponent> Method (String)

Creates a component that can be used to communicate to the current version of the database.

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

Syntax

'Declaration
Public Overridable Function CreateComponent(Of TComponent As {New, TeamFoundationSqlResourceComponent}) ( _
    databaseCategory As String _
) As TComponent
public virtual TComponent CreateComponent<TComponent>(
    string databaseCategory
)
where TComponent : new(), TeamFoundationSqlResourceComponent
public:
generic<typename TComponent>
where TComponent : gcnew(), TeamFoundationSqlResourceComponent 
virtual TComponent CreateComponent(
    String^ databaseCategory
)
abstract CreateComponent : 
        databaseCategory:string -> 'TComponent  when 'TComponent : new() and TeamFoundationSqlResourceComponent 
override CreateComponent : 
        databaseCategory:string -> 'TComponent  when 'TComponent : new() and TeamFoundationSqlResourceComponent
JScript does not support generic types or methods.

Type Parameters

  • TComponent
    The type of component to create.

Parameters

Return Value

Type: TComponent

.NET Framework Security

See Also

Reference

TeamFoundationRequestContext Class

CreateComponent Overload

Microsoft.TeamFoundation.Framework.Server Namespace