Share via


DataViewSupport Class

Enables retrieving an XML stream that provides a description of one or more data views.

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public Class DataViewSupport _
    Inherits DataSupport _
    Implements IVsDataViewSupport, IVsDataSupport, IVsDataSiteableObject(Of IVsDataViewHierarchy),  _
    IServiceProvider
public class DataViewSupport : DataSupport, 
    IVsDataViewSupport, IVsDataSupport, IVsDataSiteableObject<IVsDataViewHierarchy>, IServiceProvider
public ref class DataViewSupport : public DataSupport, 
    IVsDataViewSupport, IVsDataSupport, IVsDataSiteableObject<IVsDataViewHierarchy^>, IServiceProvider
type DataViewSupport =  
    class 
        inherit DataSupport 
        interface IVsDataViewSupport 
        interface IVsDataSupport 
        interface IVsDataSiteableObject<IVsDataViewHierarchy>
        interface IServiceProvider 
    end
public class DataViewSupport extends DataSupport implements IVsDataViewSupport, IVsDataSupport, IVsDataSiteableObject<IVsDataViewHierarchy>, IServiceProvider

The DataViewSupport type exposes the following members.

Constructors

  Name Description
Public method DataViewSupport(String, Assembly) Initializes a new instance of the DataViewSupport class with the resource base name and the assembly in which the resource is located.
Public method DataViewSupport(String, String) Initializes a new instance of the DataViewSupport class with the base name of the XML file and the path to this file.

Top

Properties

  Name Description
Protected property Connection Gets the connection associated with the data view hierarchy.
Protected property ViewHierarchy Gets the current instance of the view hierarchy object.

Top

Methods

  Name Description
Public method Close Closes the data view support object, allowing the provider to clean up resources when the data view hierarchy is closed.
Protected method CreateService Creates a service for the specified type.
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 GetService Retrieves the service object for the specified type.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Initialize Initializes the data view support object, allowing the provider to initialize resources when the data view hierarchy is created.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method OpenSupportStream() Opens a stream of bytes representing the data view support XML. (Overrides DataSupport.OpenSupportStream().)
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

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate property IVsDataSiteableObject<IVsDataViewHierarchy>.Site Gets or sets the site - the current instance of the view hierarchy object.

Top

Remarks

A data view is a hierarchical layout of data source objects that are displayed in the Visual Studio Server Explorer. Implementing this class allows such a hierarchy to be displayed to represent the hierarchical relationships of data source objects from virtually any data source.

The XML stream, which describes the data view, is provided in an XML file that validates against the schema definition file DataViewSupport.xsd.

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

DataObjectSupport

DataSupport