PolicyHttpClient.GetPolicyConfigurationsAsync 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
| GetPolicyConfigurationsAsync(Guid, String, Nullable<Guid>, Object, CancellationToken) |
[Preview API] Get a list of policy configurations in a project. |
| GetPolicyConfigurationsAsync(String, String, Nullable<Guid>, Object, CancellationToken) |
[Preview API] Get a list of policy configurations in a project. |
GetPolicyConfigurationsAsync(Guid, String, Nullable<Guid>, Object, CancellationToken)
[Preview API] Get a list of policy configurations in a project.
public System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Policy.WebApi.PolicyConfiguration>> GetPolicyConfigurationsAsync(Guid project, string scope = null, Nullable<Guid> policyType = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
override this.GetPolicyConfigurationsAsync : Guid * string * Nullable<Guid> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Policy.WebApi.PolicyConfiguration>>
Parameters
- project
- Guid
Project ID
- scope
- String
[Provided for legacy reasons] The scope on which a subset of policies is defined.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetPolicyConfigurationsAsync(String, String, Nullable<Guid>, Object, CancellationToken)
[Preview API] Get a list of policy configurations in a project.
public System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Policy.WebApi.PolicyConfiguration>> GetPolicyConfigurationsAsync(string project, string scope = null, Nullable<Guid> policyType = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
override this.GetPolicyConfigurationsAsync : string * string * Nullable<Guid> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Policy.WebApi.PolicyConfiguration>>
Parameters
- project
- String
Project ID or project name
- scope
- String
[Provided for legacy reasons] The scope on which a subset of policies is defined.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.