Condividi tramite


PolicyList Class

Manages a list of loaded policies for a set of pending changes.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.VersionControl.Client.PolicyList

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

Syntax

'Dichiarazione
Public Class PolicyList _
    Implements IDisposable
public class PolicyList : IDisposable
public ref class PolicyList : IDisposable
type PolicyList =  
    class
        interface IDisposable
    end
public class PolicyList implements IDisposable

The PolicyList type exposes the following members.

Constructors

  Name Description
Public method PolicyList Initializes the policy list so that it can access the policy information on the server.

Top

Properties

  Name Description
Public property EvaluationState Gets the overall state of the policy list.
Public property Failures Gets the array of current policy failures.
Public property PendingCheckin Sets the pending check-in object with which this policy list is associated.
Public property PolicyCount Gets the number of policies in this list.

Top

Methods

  Name Description
Public method Dispose Clean up the object when it is no longer required.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method Evaluate Evaluates the policies for the current list of pending changes.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method LoadPolicies Loads the currently applicable policies.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ReloadAndEvaluate Reloads the policies and evaluates the policies for the current list of pending changes.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Events

  Name Description
Public event PolicyEvaluationStateChanged An event that occurs when the policy failure list is updated asynchronously. It does not occur when the Evaluate method is called.
Public event PolicyStateChanged An event that occurs when the policy failure list is updated asynchronously. It does not occur when the Evaluate method is called.

Top

Remarks

It can evaluate the policies on demand, provide a list of failures, and provide an overall evaluate state summary.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.TeamFoundation.VersionControl.Client Namespace