Base class to inherit for a new check-in policy.
Inheritance Hierarchy
System.Object
  Microsoft.TeamFoundation.VersionControl.Client.PolicyBase
Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
声明
<SerializableAttribute> _
Public MustInherit Class PolicyBase _
    Implements IPolicyDefinition, IPolicyEvaluation, IDisposable
[SerializableAttribute]
public abstract class PolicyBase : IPolicyDefinition, 
    IPolicyEvaluation, IDisposable
[SerializableAttribute]
public ref class PolicyBase abstract : IPolicyDefinition, 
    IPolicyEvaluation, IDisposable
[<AbstractClass>]
[<SerializableAttribute>]
type PolicyBase =  
    class
        interface IPolicyDefinition
        interface IPolicyEvaluation
        interface IDisposable
    end
public abstract class PolicyBase implements IPolicyDefinition, IPolicyEvaluation, IDisposable
The PolicyBase type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .gif) | PolicyBase | 
Top
Properties
| Name | Description | |
|---|---|---|
| .gif) | CanEdit | Gets a flag that describes whether this policy is configurable. | 
| .gif) | Description | Gets the description of this policy. | 
| .gif) | Disposed | |
| .gif) | InstallationInstructions | Gets or sets textual instructions about how the policy can be installed on a computer. | 
| .gif) | PendingCheckin | |
| .gif) | Type | Gets the name of this policy. | 
| .gif) | TypeDescription | Gets the description of this type of policy. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | Activate | Called if the user double-clicks on a policy failure. | 
| .gif) | DisplayHelp | Displays a Help dialog box that is associated with the policy failure. | 
| .gif) | Dispose | Disposes this object. | 
| .gif) | Edit | Shows a configuration dialog box to the user to specify options for the check-in policy. | 
| .gif) | Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | 
| .gif) | Evaluate | Performs the policy evaluation. | 
| .gif) | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | 
| .gif) | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | 
| .gif) | GetType | Gets the Type of the current instance. (Inherited from Object.) | 
| .gif) | Initialize | Initializes the specified pending check-in. | 
| .gif) | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | 
| .gif) | OnPolicyStateChanged | |
| .gif) | ToString | Returns a string that represents the current object. (Inherited from Object.) | 
Top
Events
| Name | Description | |
|---|---|---|
| .gif) | PolicyStateChanged | Occurs when the state of the policy is changed. | 
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.