PolicyHttpClient.GetPolicyEvaluationAsync 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
| GetPolicyEvaluationAsync(Guid, Guid, Object, CancellationToken) |
[Preview API] Gets the present evaluation state of a policy. |
| GetPolicyEvaluationAsync(String, Guid, Object, CancellationToken) |
[Preview API] Gets the present evaluation state of a policy. |
GetPolicyEvaluationAsync(Guid, Guid, Object, CancellationToken)
[Preview API] Gets the present evaluation state of a policy.
public System.Threading.Tasks.Task<Microsoft.TeamFoundation.Policy.WebApi.PolicyEvaluationRecord> GetPolicyEvaluationAsync(Guid project, Guid evaluationId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
member this.GetPolicyEvaluationAsync : Guid * Guid * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Policy.WebApi.PolicyEvaluationRecord>
Parameters
- project
- Guid
Project ID
- evaluationId
- Guid
ID of the policy evaluation to be retrieved.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetPolicyEvaluationAsync(String, Guid, Object, CancellationToken)
[Preview API] Gets the present evaluation state of a policy.
public System.Threading.Tasks.Task<Microsoft.TeamFoundation.Policy.WebApi.PolicyEvaluationRecord> GetPolicyEvaluationAsync(string project, Guid evaluationId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
member this.GetPolicyEvaluationAsync : string * Guid * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Policy.WebApi.PolicyEvaluationRecord>
Parameters
- project
- String
Project ID or project name
- evaluationId
- Guid
ID of the policy evaluation to be retrieved.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.