Compartir a través de


IVsShortcutManager.CreateItem (Método)

Espacio de nombres:  Microsoft.VisualStudio.TextManager.Interop
Ensamblado:  Microsoft.VisualStudio.TextManager.Interop (en Microsoft.VisualStudio.TextManager.Interop.dll)

Sintaxis

'Declaración
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 devuelto

Tipo: Int32
si el método tiene éxito, devuelve S_OK.Si se produce un error, devuelve un código de error.

Comentarios

Prototipo COM

de textmgr.idl:

HRESULT IVsShortcutManager::CreateItem(
   [in]long iShortcutLine,
   [in]IVsTextLines* pBuffer,
   [in]LPCOLESTR pszBufMoniker
);

Seguridad de .NET Framework

Vea también

Referencia

IVsShortcutManager Interfaz

Microsoft.VisualStudio.TextManager.Interop (Espacio de nombres)