Edit

PolicyHttpClient.GetPolicyConfigurationsAsync Method

Definition

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.

policyType
Nullable<Guid>

Filter returned policies to only this type

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.

policyType
Nullable<Guid>

Filter returned policies to only this type

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to