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: IDataObjectThe 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.