Share via


PolicyFailure Class

Describes a failure in policy evaluation.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.VersionControl.Client.PolicyFailure

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

Syntax

'Declaration
Public Class PolicyFailure
public class PolicyFailure
public ref class PolicyFailure
type PolicyFailure =  class end
public class PolicyFailure

The PolicyFailure type exposes the following members.

Constructors

  Name Description
Public method PolicyFailure(String) Initialize the policy failure when a policy did not load. This is only used internally.
Public method PolicyFailure(String, IPolicyEvaluation) Initializes a new PolicyFailure instance.

Top

Properties

  Name Description
Public property Message Gets a description of the policy failure.
Public property Policy Gets the policy with which this failure is associated.

Top

Methods

  Name Description
Public method Activate Shows the dialog box that provides details about the policy failure.
Public method DisplayHelp Shows the Help dialog box to explain the policy failure and what steps to take to resolve it.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
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 the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

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