DragDropHelper.GetStringFromDataObject(IDataObject) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Try to extract a string from the given IDataObject. Returns the string if the data object contains one of the recognized strings data formats, otherwise returns null.
public:
static System::String ^ GetStringFromDataObject(System::Windows::IDataObject ^ source);
public static string GetStringFromDataObject (System.Windows.IDataObject source);
static member GetStringFromDataObject : System.Windows.IDataObject -> string
Public Shared Function GetStringFromDataObject (source As IDataObject) As String
Parameters
- source
- IDataObject
The data object.
Returns
Returns the string if the data object contains one of the recognized strings data formats, otherwise returns null
.