Share via


IPolicyEvaluation Interface

An interface to interact with the run-time behavior of policies (for example, for evaluation).

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)

Syntax

'Declaration
Public Interface IPolicyEvaluation _
    Inherits IDisposable
public interface IPolicyEvaluation : IDisposable
public interface class IPolicyEvaluation : IDisposable
type IPolicyEvaluation =  
    interface 
        interface IDisposable 
    end
public interface IPolicyEvaluation extends IDisposable

The IPolicyEvaluation type exposes the following members.

Methods

  Name Description
Public method Activate Display UI allows a user to get more information about a particular policy failure.
Public method DisplayHelp Display UI provides help to determine the meaning of this failure and what the user can do to resolve it.
Public method Dispose Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.)
Public method Evaluate Evaluates the policy and returns an array of failures, if any occur. Returns an empty list if no failures occur.
Public method Initialize Initializes the policy instance so that it can perform evaluations.

Top

Events

  Name Description
Public event PolicyStateChanged An event that the policy can raise to notify the host of an asynchronous change in the list of policy failures.

Top

See Also

Reference

Microsoft.TeamFoundation.VersionControl.Client Namespace