Compartir a través de


DataSource Class

Represents and provides access to a DDEX data source.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Data.DataSource

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

Syntax

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

The DataSource type exposes the following members.

Constructors

  Name Description
Protected method DataSource Class constructor.

Top

Properties

  Name Description
Public property DefaultProvider Retrieves the default DDEX provider using a global unique identifier (GUID).
Public property Description Retrieves a localized description of this data source.
Public property DisplayName Retrieves the name of the data source for UI display.
Public property Guid Retrieves the global unique identifier (GUID) of the data source.

Top

Methods

  Name Description
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 GetDescription Retrieves a description for a data source combined with a specified DDEX provider.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetProperty(String) Retrieves a data source property stored with the data source registration entries, specifying the property by name.
Public method GetProperty(Guid, String) Retrieves a data source property stored with the data source registration entries, specifying the property by name and GUID.
Public method GetProviders Retrieves an array of data provider GUIDs representing DDEX providers that support the data source.
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.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

DDEX supports the concepts of data sources and DDEX providers. A data source represents a data source type, such as a SQL Server or Microsoft Access database (.mdb) file. A DDEX provider supports one or more specific data sources. On the other hand, each data source may have one or more DDEX providers associated with it.

A given DDEX provider supports one or more specific data sources. Further, a given data source may support any number of DDEX providers.

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

DataSourceInformation

DataSourceManager

DataSourceVersionComparer