Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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
'Declaration
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.
- pBuffer
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextLines
[in] The buffer of text lines.
- pszBufMoniker
Type: System.String
[in] The buffer moniker.
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
- 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.