IVsLanguageClipboardOpsEx.IsTextDataEx Method
Determines whether a data object contains data that can be rendered into text.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Syntax
声明
Function IsTextDataEx ( _
pDO As IDataObject, _
pBuffer As IVsTextLines, _
<OutAttribute> ByRef pfIsTextData As Integer _
) As Integer
int IsTextDataEx(
IDataObject pDO,
IVsTextLines pBuffer,
out int pfIsTextData
)
int IsTextDataEx(
[InAttribute] IDataObject^ pDO,
[InAttribute] IVsTextLines^ pBuffer,
[OutAttribute] int% pfIsTextData
)
abstract IsTextDataEx :
pDO:IDataObject *
pBuffer:IVsTextLines *
pfIsTextData:int byref -> int
function IsTextDataEx(
pDO : IDataObject,
pBuffer : IVsTextLines,
pfIsTextData : int
) : int
Parameters
- pDO
Type: Microsoft.VisualStudio.OLE.Interop.IDataObject
The data object.
- pBuffer
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextLines
The buffer.
- pfIsTextData
Type: System.Int32%
[out] Zero (false) if the data object does not contain text data.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
This method is called for clipboard operations as well as drag/drop operations as long as IVsLanguageDragDropOps is not implemented. If it is implemented, then DragSetup is called instead for drag operations.
.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.