TeamFoundationResourceManagementService.TryCreateComponentRaw<TComponent> 方法
命名空間: Microsoft.TeamFoundation.Framework.Server
組件: Microsoft.TeamFoundation.Framework.Server (在 Microsoft.TeamFoundation.Framework.Server.dll 中)
語法
'宣告
Public Shared Function TryCreateComponentRaw(Of TComponent As {Class, New, ISqlResourceComponent}) ( _
connectionInfo As ISqlConnectionInfo, _
commandTimeout As Integer, _
deadlockPause As Integer, _
maxDeadlockRetries As Integer, _
<OutAttribute> ByRef component As TComponent, _
handleNoResourceManagementSchema As Boolean, _
logger As ITFLogger _
) As Boolean
public static bool TryCreateComponentRaw<TComponent>(
ISqlConnectionInfo connectionInfo,
int commandTimeout,
int deadlockPause,
int maxDeadlockRetries,
out TComponent component,
bool handleNoResourceManagementSchema,
ITFLogger logger
)
where TComponent : class, new(), ISqlResourceComponent
類型參數
- TComponent
參數
- connectionInfo
類型:Microsoft.TeamFoundation.Framework.Server.ISqlConnectionInfo
- commandTimeout
類型:System.Int32
- deadlockPause
類型:System.Int32
- maxDeadlockRetries
類型:System.Int32
- component
類型:TComponent%
- handleNoResourceManagementSchema
類型:System.Boolean
傳回值
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱 從部分受信任程式碼使用程式庫。