Delen via


DataConnectionEquivalencyComparer Class

Provides the ability to compare data connection properties for equivalence.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Data.Framework.DataSiteableObject<IVsDataProvider>
    Microsoft.VisualStudio.Data.Framework.DataConnectionEquivalencyComparer

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

Syntax

'Declaration
Public Class DataConnectionEquivalencyComparer _
    Inherits DataSiteableObject(Of IVsDataProvider) _
    Implements IVsDataConnectionEquivalencyComparer, IVsDataSiteableObject(Of IVsDataSource)
public class DataConnectionEquivalencyComparer : DataSiteableObject<IVsDataProvider>, 
    IVsDataConnectionEquivalencyComparer, IVsDataSiteableObject<IVsDataSource>
public ref class DataConnectionEquivalencyComparer : public DataSiteableObject<IVsDataProvider^>, 
    IVsDataConnectionEquivalencyComparer, IVsDataSiteableObject<IVsDataSource^>
type DataConnectionEquivalencyComparer =  
    class 
        inherit DataSiteableObject<IVsDataProvider>
        interface IVsDataConnectionEquivalencyComparer 
        interface IVsDataSiteableObject<IVsDataSource>
    end
public class DataConnectionEquivalencyComparer extends DataSiteableObject<IVsDataProvider> implements IVsDataConnectionEquivalencyComparer, IVsDataSiteableObject<IVsDataSource>

The DataConnectionEquivalencyComparer type exposes the following members.

Constructors

  Name Description
Public method DataConnectionEquivalencyComparer Initializes a new instance of the DataConnectionEquivalencyComparer class.

Top

Properties

  Name Description
Public property Site Gets or sets the object site. (Inherited from DataSiteableObject<T>.)

Top

Methods

  Name Description
Public method AreEquivalent(String, String) Compares the specified connection strings to determine whether they are equivalent and hence provide the same design-time experience.
Protected method AreEquivalent(IVsDataConnectionProperties, IVsDataConnectionProperties) Compares the specified connection property objects to determine whether they are equivalent and hence provide the same design-time experience.
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

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate property IVsDataSiteableObject<IVsDataSource>.Site Gets the data source.

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