DragDropHelper::GetStringFromDataObject Method (IDataObject^)

 

Try to extract a string from the specified IDataObject.

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

public:
static String^ GetStringFromDataObject(
	IDataObject^ source
)

Parameters

source
Type: System.Windows::IDataObject^

The data object.

Return Value

Type: System::String^

Returns the string if the data object contains one of the recognized strings data formats, otherwise returns null.

Return to top
Show: