GitHttpClientBase.GetCommitsAsync 方法 (String, Guid, GitQueryCommitsCriteria, Nullable<Int32>, Nullable<Int32>, Object, CancellationToken)
命名空間: Microsoft.TeamFoundation.SourceControl.WebApi
組件: Microsoft.TeamFoundation.SourceControl.WebApi (在 Microsoft.TeamFoundation.SourceControl.WebApi.dll 中)
語法
'宣告
Public Overridable Function GetCommitsAsync ( _
project As String, _
repositoryId As Guid, _
searchCriteria As GitQueryCommitsCriteria, _
skip As Nullable(Of Integer), _
top As Nullable(Of Integer), _
userState As Object, _
cancellationToken As CancellationToken _
) As Task(Of List(Of GitCommitRef))
public virtual Task<List<GitCommitRef>> GetCommitsAsync(
string project,
Guid repositoryId,
GitQueryCommitsCriteria searchCriteria,
Nullable<int> skip,
Nullable<int> top,
Object userState,
CancellationToken cancellationToken
)
參數
- project
類型:System.String
- repositoryId
類型:System.Guid
- searchCriteria
類型:Microsoft.TeamFoundation.SourceControl.WebApi.GitQueryCommitsCriteria
- skip
類型:System.Nullable<Int32>
- top
類型:System.Nullable<Int32>
- userState
類型:System.Object
- cancellationToken
類型:System.Threading.CancellationToken
傳回值
類型:System.Threading.Tasks.Task<List<GitCommitRef>>
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱 從部分受信任程式碼使用程式庫。