Share via


GraphDataObject.GetData Method (Type)

Gets the data for the passed in format

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

Syntax

'Declaration
Public Function GetData ( _
    format As Type _
) As Object
public Object GetData(
    Type format
)
public:
virtual Object^ GetData(
    Type^ format
) sealed
abstract GetData : 
        format:Type -> Object  
override GetData : 
        format:Type -> Object
public final function GetData(
    format : Type
) : Object

Parameters

  • format
    Type: Type

    The format desired

Return Value

Type: Object
The data for this object if the format type is supported, null otherwise

Implements

IDataObject.GetData(Type)

Remarks

If type passed in is a string, then the graph is returned as an xml string. If the type passed in is a Graph, then the graph object is returned without any serialization

.NET Framework Security

See Also

Reference

GraphDataObject Class

GetData Overload

Microsoft.VisualStudio.GraphModel Namespace