Partager via


DataObjectSupport Class

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

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public Class DataObjectSupport _
    Inherits DataSupport _
    Implements IVsDataObjectSupport, IVsDataSupport
public class DataObjectSupport : DataSupport, 
    IVsDataObjectSupport, IVsDataSupport
public ref class DataObjectSupport : public DataSupport, 
    IVsDataObjectSupport, IVsDataSupport
type DataObjectSupport =  
    class 
        inherit DataSupport 
        interface IVsDataObjectSupport 
        interface IVsDataSupport 
    end
public class DataObjectSupport extends DataSupport implements IVsDataObjectSupport, IVsDataSupport

The DataObjectSupport type exposes the following members.

Constructors

  Name Description
Public method DataObjectSupport(String, Assembly) Instantiates a new instance of the DataObjectSupport class with an XML resource stored in a managed assembly.
Public method DataObjectSupport(String, String) Instantiates a new instance of the DataObjectSupport class with an XML resource that is stored as a file at a specific file path on disk.

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 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.)
Public method OpenSupportStream() Opens a stream of bytes representing the XML content. (Inherited from DataSupport.)
Protected method OpenSupportStream(CultureInfo) Opens a stream of bytes representing the XML content for a specified culture. (Inherited from DataSupport.)
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 DataObjectSupport.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 the 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.Framework Namespace

DataReader

Other Resources

DDEX Data Object Support