Bagikan melalui


IPolicyCompatibility Interface

This interface is used for backward compatibility for checkin policies that have been moved to new types or assemblies.

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

Syntax

'Declaration
Public Interface IPolicyCompatibility _
    Inherits IPolicyDefinition
public interface IPolicyCompatibility : IPolicyDefinition
public interface class IPolicyCompatibility : IPolicyDefinition
type IPolicyCompatibility =  
    interface 
        interface IPolicyDefinition 
    end
public interface IPolicyCompatibility extends IPolicyDefinition

The IPolicyCompatibility type exposes the following members.

Properties

  Name Description
Public property CanEdit Gets a flag that describes whether this policy includes configuration user interface (UI). (Inherited from IPolicyDefinition.)
Public property Description Gets a description of the behavior of this policy instance. (Inherited from IPolicyDefinition.)
Public property InstallationInstructions Gets a message that is displayed if the policy appears not to be installed. (Inherited from IPolicyDefinition.)
Public property Type Gets the type of the policy. (Inherited from IPolicyDefinition.)
Public property TypeDescription Gets a description of the policy type. (Inherited from IPolicyDefinition.)

Top

Methods

  Name Description
Public method Edit Displays a dialog box to allow user to configure the properties of the policy. (Inherited from IPolicyDefinition.)
Public method GetAssemblyName Used for backward compatibility where you must specify a different assembly name for the checkin policy in order to maintain backward compatibility with a previously released version of the checkin policy.
Public method GetBinaryFormatter This is necessary if you want to create a new BinaryFormatter and hook into the serialization process for backward compatibility (e.g., you want to set the Binder property on the formatter to handle compat for a checkin policy that has been moved to another assembly). If you do not want to hook into the serialization process, just return new BinaryFormatter().

Top

See Also

Reference

Microsoft.TeamFoundation.VersionControl.Client Namespace