Compartilhar via


DragDropHelper.GetStringFromDataObject Method

Try to extract a string from the specified IDataObject.

Namespace:  Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Public Shared Function GetStringFromDataObject ( _
    source As IDataObject _
) As String
public static string GetStringFromDataObject(
    IDataObject source
)
public:
static String^ GetStringFromDataObject(
    IDataObject^ source
)
static member GetStringFromDataObject : 
        source:IDataObject -> string
public static function GetStringFromDataObject(
    source : IDataObject
) : String

Parameters

  • source
    Type: IDataObject

    The data object.

Return Value

Type: String
Returns the string if the data object contains one of the recognized strings data formats, otherwise returns nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

DragDropHelper Class

Microsoft.VisualStudio.PlatformUI Namespace