Partilhar via


Método IVsLanguageClipboardOps.GetDataObject

Cria um IDataObject com formatos específicos do idioma.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (em Microsoft.VisualStudio.TextManager.Interop.dll)

Sintaxe

'Declaração
Function GetDataObject ( _
    pView As IVsTextView, _
    pTextLayer As IVsTextLayer, _
    <OutAttribute> ByRef ppDO As IDataObject _
) As Integer
int GetDataObject(
    IVsTextView pView,
    IVsTextLayer pTextLayer,
    out IDataObject ppDO
)
int GetDataObject(
    [InAttribute] IVsTextView^ pView, 
    [InAttribute] IVsTextLayer^ pTextLayer, 
    [OutAttribute] IDataObject^% ppDO
)
abstract GetDataObject : 
        pView:IVsTextView * 
        pTextLayer:IVsTextLayer * 
        ppDO:IDataObject byref -> int
function GetDataObject(
    pView : IVsTextView, 
    pTextLayer : IVsTextLayer, 
    ppDO : IDataObject
) : int

Parâmetros

  • ppDO
    Tipo: IDataObject%

    [out] O objeto de dados.

Valor de retorno

Tipo: Int32
Se o método for bem-sucedido, ele retorna S_OK.Se ele falhar, ele retorna um código de erro.

Comentários

COM assinatura

De textmgr.idl:

HRESULT IVsLanguageClipboardOps::GetDataObject(
   [in] IVsTextView *pView, 
   [in] IVsTextLayer *pTextLayer, 
   [out, retval] IDataObject **ppDO
);

O objeto de dados criado não deve manter uma referência ao modo de exibição (pView) ou a camada de texto (pTextLayer) porque o objeto de dados pode outlive-los.

Segurança do .NET Framework

Consulte também

Referência

IVsLanguageClipboardOps Interface

Namespace Microsoft.VisualStudio.TextManager.Interop