通过从数据库读取服务版本创建一个的元素。不使用缓存。
命名空间: Microsoft.TeamFoundation.Framework.Server
程序集: Microsoft.TeamFoundation.Framework.Server(在 Microsoft.TeamFoundation.Framework.Server.dll 中)
语法
声明
Public Shared Function TryCreateComponentRaw(Of TComponent As {New, TeamFoundationSqlResourceComponent}) ( _
connectionString As String, _
commandTimeout As Integer, _
deadlockPause As Integer, _
maxDeadlockRetries As Integer, _
<OutAttribute> ByRef component As TComponent, _
handleNoResourceManagementSchema As Boolean _
) As Boolean
public static bool TryCreateComponentRaw<TComponent>(
string connectionString,
int commandTimeout,
int deadlockPause,
int maxDeadlockRetries,
out TComponent component,
bool handleNoResourceManagementSchema
)
where TComponent : new(), TeamFoundationSqlResourceComponent
类型参数
- TComponent
参数
- connectionString
类型:System.String
- commandTimeout
类型:System.Int32
- deadlockPause
类型:System.Int32
- maxDeadlockRetries
类型:System.Int32
- component
类型:TComponent%
- handleNoResourceManagementSchema
类型:System.Boolean
返回值
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。