Compartir a través de


DataObjectSupport Class

Allows you to retrieve an XML stream that describes a set of data object types on a data source, which can then interpret and manipulate programmatically.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Data.DataSupport
    Microsoft.VisualStudio.Data.DataObjectSupport

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

Syntax

'Declaration
<GuidAttribute("ED513EC3-15EE-4778-9C74-3B865B328870")> _
Public Class DataObjectSupport _
    Inherits DataSupport
[GuidAttribute("ED513EC3-15EE-4778-9C74-3B865B328870")]
public class DataObjectSupport : DataSupport
[GuidAttribute(L"ED513EC3-15EE-4778-9C74-3B865B328870")]
public ref class DataObjectSupport : public DataSupport
[<GuidAttribute("ED513EC3-15EE-4778-9C74-3B865B328870")>]
type DataObjectSupport =  
    class 
        inherit DataSupport 
    end
public class DataObjectSupport extends DataSupport

The DataObjectSupport type exposes the following members.

Constructors

  Name Description
Protected method DataObjectSupport() Class constructor. Instantiates a nonparameterized instance of the DataObjectSupport class.
Public method DataObjectSupport(String, Assembly) Class constructor. Instantiates a parameterized instance of the DataObjectSupport class that provides means for locating a resource stream.
Public method DataObjectSupport(String, String) Class constructor. Instantiates a parameterized instance of the DataObjectSupport class that provides resource directory information.

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 GetDataObjectTypes Retrieves an XML stream that contains information about a set of data object types that can be interpreted and manipulated programmatically.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetSupportStream Obtains a Stream object instance for a specified culture. (Inherited from DataSupport.)
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

A data object type is a set of information that describes objects composing the structure of a data source—for example, a table or a data view. This information is provided in an XML stream (a Stream object) that conforms to the XML schema described in the VSDataObjectSupport.xsd file. For more information about this schema, see DDEX Data Object Support.

Implementing this object allows Visual Studio to access these objects programmatically without needing to rely on data-source-specific commands.

You must implement this class to use data tools with the data provider, including use of custom data view implementations that depend on programmatic access to data objects.

Inherits from the DataSupport class.

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

DataReader