Compartir a través de


DataSourceSpecializer Class

Represents an ability to specialize the behavior of a DDEX provider based on the data source to which it is connected.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Data.DataSourceSpecializer

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

Syntax

'Declaration
Public MustInherit Class DataSourceSpecializer
public abstract class DataSourceSpecializer
public ref class DataSourceSpecializer abstract
[<AbstractClass>]
type DataSourceSpecializer =  class end
public abstract class DataSourceSpecializer

The DataSourceSpecializer type exposes the following members.

Constructors

  Name Description
Protected method DataSourceSpecializer Class constructor. Creates a new instance of the DataSourceSpecializer class.

Top

Methods

  Name Description
Public method CreateObject Creates a DDEX-provider implemented object of the given type that is specialized for the specified data source.
Public method DeriveDataSource Determines which data source supported by the provider is represented by the given connection string.
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 GetAssembly Locates an assembly given an assembly string and data source guid.
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.)
Public method GetType(Guid, String) Retrieves a type definition given a type name and data source guid.
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

Remarks

Some DDEX providers behave very differently against different data sources. The most extreme example is with generic providers like OLE DB and ODBC whose specific provider or driver defines the behavior. A simpler example is the differentiation between a SQL Server connection and a SQL Server Database File connection.

While the same provider is used to connect to each data source, the design time experience may be very different. A DDEX provider can implement this class to provide ways of customizing behavior of the provider depending on its data source.

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 Namespace

DataSource

DataSourceManager