DataProvider Class

Enables creation of DDEX provider objects.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Data.DataProvider

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

Syntax

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

The DataProvider type exposes the following members.

Constructors

  Name Description
Protected method DataProvider Class constructor.

Top

Properties

  Name Description
Public property Description Retrieves a culture-sensitive description of the DDEX provider.
Public property DisplayName Retrieves a culture-sensitive name for the specified data provider.
Public property Guid Retrieves the unique identifier of the DDEX provider.
Public property ShortDisplayName Retrieves the short form of the display name.
Public property Technology Retrieves the unique identifier of the underlying technology used by the provider, if any.

Top

Methods

  Name Description
Public method CreateObject(Type) Creates a DDEX provider implementation of a specific object type.
Public method CreateObject(Guid, Type) Creates a new DDEX provider-implemented object, preferably tailored for the specified data source, and of the specified type.
Public method DeriveDataSource Determines which data source supported by this DDEX 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(String) Resolves an assembly string to a specific assembly as defined by the DDEX provider.
Public method GetAssembly(Guid, String) Resolves an assembly string to an assembly associated with a specified data source as defined by the DDEX provider.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetProperty Retrieves a generically known or DDEX provider-specific property.
Public method GetType() Gets the Type of the current instance. (Inherited from Object.)
Public method GetType(String) Resolves a type name to a Type as defined by the DDEX provider.
Public method GetType(Guid, String) Resolves a type name to a Type for a specified data source as defined by the DDEX provider.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method SupportsObject(Type) Retrieves a Boolean value that indicates whether a particular object type is supported by the provider.
Public method SupportsObject(Guid, Type) Indicates whether a given DDEX provider supports an object of the specified type, potentially a specialized version for the specified data source.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

The DataProvider class provides basic information about a DDEX provider and methods for querying about or creating provider-implemented objects. This class is the bootstrapper for all DDEX provider-specific entities.

DDEX provides the single implementation of this class. This implementation is based on information read from the registry, and as such does not require that code implementing the provider be loaded.

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

DataProviderManager