TeamFoundationResourceManagementService.TryGetServiceVersionRaw<TComponent> Method
Retrieves a service version entry and component creator for a given component from the database. No caches are used.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Shared Function TryGetServiceVersionRaw(Of TComponent As {New, TeamFoundationSqlResourceComponent}) ( _
connectionString As String, _
<OutAttribute> ByRef serviceVersionEntry As ServiceVersionEntry, _
<OutAttribute> ByRef componentCreator As IComponentCreator, _
handleNoResourceManagementSchema As Boolean _
) As Boolean
public static bool TryGetServiceVersionRaw<TComponent>(
string connectionString,
out ServiceVersionEntry serviceVersionEntry,
out IComponentCreator componentCreator,
bool handleNoResourceManagementSchema
)
where TComponent : new(), TeamFoundationSqlResourceComponent
public:
generic<typename TComponent>
where TComponent : gcnew(), TeamFoundationSqlResourceComponent
static bool TryGetServiceVersionRaw(
String^ connectionString,
[OutAttribute] ServiceVersionEntry^% serviceVersionEntry,
[OutAttribute] IComponentCreator^% componentCreator,
bool handleNoResourceManagementSchema
)
static member TryGetServiceVersionRaw :
connectionString:string *
serviceVersionEntry:ServiceVersionEntry byref *
componentCreator:IComponentCreator byref *
handleNoResourceManagementSchema:bool -> bool when 'TComponent : new() and TeamFoundationSqlResourceComponent
JScript does not support generic types or methods.
Type Parameters
- TComponent
Parameters
connectionString
Type: System.Stringdatabase connection string
serviceVersionEntry
Type: Microsoft.TeamFoundation.Framework.Server.ServiceVersionEntry%The service version entry from database, or null if not found.
componentCreator
Type: Microsoft.TeamFoundation.Framework.Server.IComponentCreator%an IComponentCreator that can be used to create the associated versioned component, or null if a matching one could not be found.
- handleNoResourceManagementSchema
Type: System.Boolean
Return Value
Type: System.Boolean
Remarks
If a transitionCreator component is registered, componentCreator will be set even if serviceVersionEntry is null.
.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.