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
databaseCategory
Type: System.StringThe database category.
Return Value
Type: TComponent
.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.