Delen via


IVsDataSupport Interface

Provides the ability to supply a stream of XML that drives support for a particular area of data designer extensibility (DDEX).

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

Syntax

'Declaration
Public Interface IVsDataSupport
public interface IVsDataSupport
public interface class IVsDataSupport
type IVsDataSupport =  interface end
public interface IVsDataSupport

The IVsDataSupport type exposes the following members.

Methods

  Name Description
Public method OpenSupportStream Opens and returns the stream of data support XML that is represented by the data support object.

Top

Remarks

The DDEX architecture is data driven for complex areas of extensibility, such as representing the data source as an object model or in a hierarchical view. To achieve this, a support entity has been implemented whose purpose is to return a stream of XML that matches a known schema to the caller. The caller then interprets this XML and uses it to drive that area of extensibility.

This interface represents the base interface for all such types of support. It contains a single method that returns an open stream of XML.

Examples

The following code demonstrates a potential implementation of this interface in the context of supplying support for viewing the data source as an object model.

using System;
using System.IO;
using Microsoft.VisualStudio.Data.Core;
using Microsoft.VisualStudio.Data.Services.SupportEntities;

internal class MyObjectSupport
    : IVsDataObjectSupport // inherits from IVsDataSupport
{
    public Stream OpenSupportStream()
    {
        return GetType().Assembly.GetManifestResourceStream(
            "MyObjectSupport.xml");
    }
}

See Also

Reference

Microsoft.VisualStudio.Data.Core Namespace