Partager via


DataSourceVersionComparer Class

Provides the means to compare two data-source-specific version strings.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Data.Framework.DataSiteableObject<IVsDataConnection>
    Microsoft.VisualStudio.Data.Framework.DataSourceVersionComparer

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
Public Class DataSourceVersionComparer _
    Inherits DataSiteableObject(Of IVsDataConnection) _
    Implements IVsDataSourceVersionComparer, IComparable(Of String)
public class DataSourceVersionComparer : DataSiteableObject<IVsDataConnection>, 
    IVsDataSourceVersionComparer, IComparable<string>
public ref class DataSourceVersionComparer : public DataSiteableObject<IVsDataConnection^>, 
    IVsDataSourceVersionComparer, IComparable<String^>
type DataSourceVersionComparer =  
    class 
        inherit DataSiteableObject<IVsDataConnection>
        interface IVsDataSourceVersionComparer 
        interface IComparable<string>
    end
public class DataSourceVersionComparer extends DataSiteableObject<IVsDataConnection> implements IVsDataSourceVersionComparer, IComparable<String>

The DataSourceVersionComparer type exposes the following members.

Constructors

  Name Description
Public method DataSourceVersionComparer() Initializes a new instance of the DataSourceVersionComparer class.
Public method DataSourceVersionComparer(IComparer<String>) Initializes a new instance of the DataSourceVersionComparer class.

Top

Properties

  Name Description
Protected property Comparer Gets or sets the IComparer<T> object with which to perform a comparison.
Public property Site Gets or sets the object site. (Inherited from DataSiteableObject<T>.)
Protected property SourceVersion Gets the data source version from the sited connection, if any.

Top

Methods

  Name Description
Public method CompareTo Compares the current data-source version in this class with the specified data-source version.
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.)
Protected method OnSiteChanged Raises the SiteChanged event. (Inherited from DataSiteableObject<T>.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Events

  Name Description
Public event SiteChanged Occurs when the Site property is changed. (Inherited from DataSiteableObject<T>.)

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.VisualStudio.Data.Framework Namespace

IComparer<T>