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