Partilhar via


Método IVsShortcutManager.CreateItem

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

Sintaxe

'Declaração
Function CreateItem ( _
    iShortcutLine As Integer, _
    pBuffer As IVsTextLines, _
    pszBufMoniker As String _
) As Integer
int CreateItem(
    int iShortcutLine,
    IVsTextLines pBuffer,
    string pszBufMoniker
)
int CreateItem(
    [InAttribute] int iShortcutLine, 
    [InAttribute] IVsTextLines^ pBuffer, 
    [InAttribute] String^ pszBufMoniker
)
abstract CreateItem : 
        iShortcutLine:int * 
        pBuffer:IVsTextLines * 
        pszBufMoniker:string -> int
function CreateItem(
    iShortcutLine : int, 
    pBuffer : IVsTextLines, 
    pszBufMoniker : String
) : int

Parâmetros

  • iShortcutLine
    Tipo: Int32

    [in]

  • pszBufMoniker
    Tipo: String

    [in]

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 IVsShortcutManager::CreateItem(
   [in]long iShortcutLine,
   [in]IVsTextLines* pBuffer,
   [in]LPCOLESTR pszBufMoniker
);

Segurança do .NET Framework

Consulte também

Referência

IVsShortcutManager Interface

Namespace Microsoft.VisualStudio.TextManager.Interop