Share via


DataSupport Class

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

Inheritance Hierarchy

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

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

Syntax

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

The DataSupport type exposes the following members.

Constructors

  Name Description
Protected method DataSupport() Class constructor. Initializes a new instance of the DataSupport class.
Protected method DataSupport(String, Assembly) Class constructor. Initializes a new, parameterized instance of the DataSupport class with an XML resource stored in a managed assembly.
Protected method DataSupport(String, String) Initializes a new, parameterized instance of the DataSupport class with XML that is stored as a file at a specific file path on disk.

Top

Methods

  Name Description
Protected methodStatic member CreateXmlResourceManager(String, Assembly) Creates a ResourceManager object instance that is able to read managed resources that end with the .xml file extension.
Protected methodStatic member CreateXmlResourceManager(String, String) Creates a ResourceManager object instance that is able to read XML files from a file at a specific location on disk.
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 GetSupportStream Obtains a Stream object instance for a specified culture.
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

One of the fundamental design goals of DDEX is for each major feature area of extensibility to be driven through data support XML supplied by the DDEX provider. For each such feature area, there is a class, for example DataViewSupport or DataObjectSupport classes, 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 Namespace

Other Resources

DDEX Data Object Support

DDEX Data View Support