ServicingContext.CreateComponent<TComponent> 方法
命名空間: Microsoft.TeamFoundation.Framework.Server
組件: Microsoft.TeamFoundation.Framework.Server (在 Microsoft.TeamFoundation.Framework.Server.dll 中)
語法
'宣告
Public Function CreateComponent(Of TComponent As {New, TeamFoundationSqlResourceComponent}) ( _
databaseCategory As String, _
partitionId As Integer, _
commandTimeout As Integer, _
deadlockPause As Integer, _
maxDeadlockRetries As Integer _
) As TComponent
public TComponent CreateComponent<TComponent>(
string databaseCategory,
int partitionId,
int commandTimeout,
int deadlockPause,
int maxDeadlockRetries
)
where TComponent : new(), TeamFoundationSqlResourceComponent
型別參數
- TComponent
參數
- databaseCategory
型別:System.String
- partitionId
型別:System.Int32
- commandTimeout
型別:System.Int32
- deadlockPause
型別:System.Int32
- maxDeadlockRetries
型別:System.Int32
傳回值
型別:TComponent
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。