Delen via


TeamFoundationRequestContext.CreateComponent<TComponent> Method

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}) As TComponent
public virtual TComponent CreateComponent<TComponent>()
where TComponent : new(), TeamFoundationSqlResourceComponent
public:
generic<typename TComponent>
where TComponent : gcnew(), TeamFoundationSqlResourceComponent 
virtual TComponent CreateComponent()
abstract CreateComponent : unit -> 'TComponent  when 'TComponent : new() and TeamFoundationSqlResourceComponent 
override CreateComponent : unit -> 'TComponent  when 'TComponent : new() and TeamFoundationSqlResourceComponent
JScript does not support generic types or methods.

Type Parameters

  • TComponent
    The type of component to create.

Return Value

Type: TComponent

.NET Framework Security

See Also

Reference

TeamFoundationRequestContext Class

CreateComponent Overload

Microsoft.TeamFoundation.Framework.Server Namespace