This topic has not yet been rated - Rate this topic

DataViewSupport Class

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

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)
public class DataViewSupport : DataSupport, 
	IVsDataViewSupport, IVsDataSupport, IVsDataSiteableObject<IVsDataViewHierarchy>, IServiceProvider

The DataViewSupport type exposes the following members.

  NameDescription
Public methodDataViewSupport(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 methodDataViewSupport(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
  NameDescription
Protected propertyConnectionGets the connection associated with the data view hierarchy.
Protected propertyViewHierarchyGets the current instance of the view hierarchy object.
Top
  NameDescription
Public methodCloseCloses the data view support object, allowing the provider to clean up resources when the data view hierarchy is closed.
Protected methodCreateServiceCreates a service for the specified type.
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetServiceRetrieves the service object for the specified type.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodInitializeInitializes the data view support object, allowing the provider to initialize resources when the data view hierarchy is created.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodOpenSupportStream()Opens a stream of bytes representing the data view support XML. (Overrides DataSupport.OpenSupportStream().)
Protected methodOpenSupportStream(CultureInfo)Opens a stream of bytes representing the XML content for a specified culture. (Inherited from DataSupport.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top
  NameDescription
Explicit interface implemetationPrivate propertyIVsDataSiteableObject<IVsDataViewHierarchy>.SiteGets or sets the site - the current instance of the view hierarchy object.
Top

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.