Share via


DataSupport Class

Represents the base class for all classes that provide data support XML.

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public MustInherit Class DataSupport _
    Implements IVsDataSupport
public abstract class DataSupport : IVsDataSupport
public ref class DataSupport abstract : IVsDataSupport
[<AbstractClass>]
type DataSupport =  
    class
        interface IVsDataSupport
    end
public abstract class DataSupport implements IVsDataSupport

The DataSupport type exposes the following members.

Constructors

  Name Description
Protected method DataSupport(String, Assembly) Initializes a new instance of the DataSupport class with an XML resource stored in a managed assembly.
Protected method DataSupport(String, String) Initializes a new instance of the DataSupport 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 a hash function for a particular type. (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.
Protected method OpenSupportStream(CultureInfo) Opens a stream of bytes representing the XML content for a specified culture.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

One of the fundamental design goals of DDEX is for each major feature area of extensibility to be controlled through data support XML supplied by the DDEX provider. For each such feature area, there is a class - for example, DataViewSupport or DataObjectSupport - that provides a way to supply a stream of XML for the feature.

There are a few standard places from which this stream of XML may come. It may be read from a managed resource compiled into an assembly, or from a file on disk. This base class implements methods that will automatically locate either, depending on which constructor is called.

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

Other Resources

DDEX Data Object Support

DDEX Data View Support