TeamFoundationResourceManagementService.CreateComponent<TComponent> Method (TeamFoundationRequestContext, 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 Function CreateComponent(Of TComponent As TeamFoundationSqlResourceComponent) ( _
requestContext As TeamFoundationRequestContext, _
databaseCategory As String _
) As TComponent
public TComponent CreateComponent<TComponent>(
TeamFoundationRequestContext requestContext,
string databaseCategory
)
where TComponent : TeamFoundationSqlResourceComponent
public:
generic<typename TComponent>
where TComponent : TeamFoundationSqlResourceComponent
TComponent CreateComponent(
TeamFoundationRequestContext^ requestContext,
String^ databaseCategory
)
member CreateComponent :
requestContext:TeamFoundationRequestContext *
databaseCategory:string -> 'TComponent when 'TComponent : TeamFoundationSqlResourceComponent
JScript does not support generic types or methods.
Type Parameters
- TComponent
Parameters
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
- databaseCategory
Type: System.String
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.