PolicyHttpClient.GetPolicyTypesAsync 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
| GetPolicyTypesAsync(Guid, Object, CancellationToken) |
[Preview API] Retrieve all available policy types. |
| GetPolicyTypesAsync(String, Object, CancellationToken) |
[Preview API] Retrieve all available policy types. |
GetPolicyTypesAsync(Guid, Object, CancellationToken)
[Preview API] Retrieve all available policy types.
public System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Policy.WebApi.PolicyType>> GetPolicyTypesAsync(Guid project, object userState = null, System.Threading.CancellationToken cancellationToken = null);
member this.GetPolicyTypesAsync : Guid * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Policy.WebApi.PolicyType>>
Parameters
- project
- Guid
Project ID
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetPolicyTypesAsync(String, Object, CancellationToken)
[Preview API] Retrieve all available policy types.
public System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Policy.WebApi.PolicyType>> GetPolicyTypesAsync(string project, object userState = null, System.Threading.CancellationToken cancellationToken = null);
member this.GetPolicyTypesAsync : string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.Policy.WebApi.PolicyType>>
Parameters
- project
- String
Project ID or project name
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.