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 | |
---|---|---|
DataSupport() | Class constructor. Initializes a new instance of the DataSupport class. | |
DataSupport(String, Assembly) | Class constructor. Initializes a new, parameterized instance of the DataSupport class with an XML resource stored in a managed assembly. | |
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 | |
---|---|---|
CreateXmlResourceManager(String, Assembly) | Creates a ResourceManager object instance that is able to read managed resources that end with the .xml file extension. | |
CreateXmlResourceManager(String, String) | Creates a ResourceManager object instance that is able to read XML files from a file at a specific location on disk. | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetSupportStream | Obtains a Stream object instance for a specified culture. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
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