Compartilhar via


IVsShortcutManager.CreateItem Method

Creates a shortcut for the specified text buffer.

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

Syntax

'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

Parameters

  • iShortcutLine
    Type: System.Int32
    [in] The shortcut line index.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

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

.NET Framework Security

See Also

Reference

IVsShortcutManager Interface

Microsoft.VisualStudio.TextManager.Interop Namespace