IVsLanguageDragDropOps.DragSetup Method
Does the necessary setup or caching in order to quickly execute the IsTextDataAtLocation method.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Syntax
'Declaração
Function DragSetup ( _
pDO As IDataObject, _
pBuffer As IVsTextLines, _
<OutAttribute> ByRef pfDocumentContainsTextData As Integer _
) As Integer
int DragSetup(
IDataObject pDO,
IVsTextLines pBuffer,
out int pfDocumentContainsTextData
)
int DragSetup(
[InAttribute] IDataObject^ pDO,
[InAttribute] IVsTextLines^ pBuffer,
[OutAttribute] int% pfDocumentContainsTextData
)
abstract DragSetup :
pDO:IDataObject *
pBuffer:IVsTextLines *
pfDocumentContainsTextData:int byref -> int
function DragSetup(
pDO : IDataObject,
pBuffer : IVsTextLines,
pfDocumentContainsTextData : int
) : int
Parameters
- pDO
Type: Microsoft.VisualStudio.OLE.Interop.IDataObject
The data object.
- pBuffer
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextLines
The buffer.
- pfDocumentContainsTextData
Type: System.Int32%
[out] Zero (false) if the document does not contain text, otherwise non-zero (true).
Return Value
Type: System.Int32
Remarks
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
.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.