Compartir a través de


DataObjectSupport.GetDataObjectTypes Method

Retrieves an XML stream that contains information about a set of data object types that can be interpreted and manipulated programmatically.

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

Syntax

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

Return Value

Type: System.IO.Stream
Returns a Stream object instance from which XML data is read.

Remarks

This XML stream (Stream object instance) provides information about the set of data object types that can be interpreted and manipulated programmatically. The XML file must conform to the schema defined in the VSDataObjectSupport.xsd file.

Elements of this XML reference managed types or CLSIDs registered in the Visual Studio local registry; these provide objects that implement actions for the data object types.

Presently, the only supported actions are the ability to enumerate instances of a data object type and the ability to build a DSRef object that identifies an instance of a data object type. These custom objects can implement the DataObjectEnumerator or DSRefBuilder classes to enable the enumeration of data objects or the building of DSRef objects, respectively.

The base implementation of this method delegates to GetSupportStream, using a CultureInfo.InvariantCulture parameter.

.NET Framework Security

See Also

Reference

DataObjectSupport Class

Microsoft.VisualStudio.Data Namespace