BuildHttpClientBase.ListWebhooksAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ListWebhooksAsync(String, String, Nullable<Guid>, String, Object, CancellationToken) |
[Preview API] Gets a list of webhooks installed in the given source code repository. |
ListWebhooksAsync(Guid, String, Nullable<Guid>, String, Object, CancellationToken) |
[Preview API] Gets a list of webhooks installed in the given source code repository. |
ListWebhooksAsync(String, String, Nullable<Guid>, String, Object, CancellationToken)
[Preview API] Gets a list of webhooks installed in the given source code repository.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Build.WebApi.RepositoryWebhook>> ListWebhooksAsync (string project, string providerName, Nullable<Guid> serviceEndpointId = null, string repository = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member ListWebhooksAsync : string * string * Nullable<Guid> * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Build.WebApi.RepositoryWebhook>>
override this.ListWebhooksAsync : string * string * Nullable<Guid> * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Build.WebApi.RepositoryWebhook>>
Parameters
- project
- String
Project ID or project name
- providerName
- String
The name of the source provider.
If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit.
- repository
- String
If specified, the vendor-specific identifier or the name of the repository to get webhooks. Can only be omitted for providers that do not support multiple repositories.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
ListWebhooksAsync(Guid, String, Nullable<Guid>, String, Object, CancellationToken)
[Preview API] Gets a list of webhooks installed in the given source code repository.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Build.WebApi.RepositoryWebhook>> ListWebhooksAsync (Guid project, string providerName, Nullable<Guid> serviceEndpointId = null, string repository = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member ListWebhooksAsync : Guid * string * Nullable<Guid> * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Build.WebApi.RepositoryWebhook>>
override this.ListWebhooksAsync : Guid * string * Nullable<Guid> * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Build.WebApi.RepositoryWebhook>>
Parameters
- project
- Guid
Project ID
- providerName
- String
The name of the source provider.
If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit.
- repository
- String
If specified, the vendor-specific identifier or the name of the repository to get webhooks. Can only be omitted for providers that do not support multiple repositories.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for