Share via


DataViewSupport.GetDataViews Method

Retrieves an XML stream that contains a description of one or more data views to display in the Visual Studio Server Explorer tool window for a given connection.

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

Syntax

'Declaration
Public Overridable Function GetDataViews As Stream
public virtual Stream GetDataViews()
public:
virtual Stream^ GetDataViews()
abstract GetDataViews : unit -> Stream  
override GetDataViews : unit -> Stream
public function GetDataViews() : Stream

Return Value

Type: System.IO.Stream
Returns a Stream object instance that contains the XML description of the specified data view (or views).

Remarks

This XML returned as an Stream object provides information about one or more data views to display in the Visual Studio Server Explorer window. The XML must conform to the schema as specified in VSDataViewSupport.xsd file.

To enable data object enumeration, elements of the XML will reference data object types that are defined in the data-object support XML file, which conforms to the schema file VSDataObjectSupport.xsd.

The XML can also reference CLSIDs or managed types that are registered in the Visual Studio local registry; these are references to custom objects that implement special browse objects (for example, objects displayed in the Properties window for a given node) or commands triggering actions that occur when a node is double-clicked or a context menu item is selected.

The base implementation calls the GetSupportStream method passing in a CultureInfo.CurrentUICulture parameter.

.NET Framework Security

See Also

Reference

DataViewSupport Class

Microsoft.VisualStudio.Data Namespace