IVsShortcutManager.CreateItem Method
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
'Декларация
Function CreateItem ( _
iShortcutLine As Integer, _
pBuffer As IVsTextLines, _
pszBufMoniker As String _
) As Integer
'Применение
Dim instance As IVsShortcutManager
Dim iShortcutLine As Integer
Dim pBuffer As IVsTextLines
Dim pszBufMoniker As String
Dim returnValue As Integer
returnValue = instance.CreateItem(iShortcutLine, _
pBuffer, pszBufMoniker)
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]
- pBuffer
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextLines
[in]
- pszBufMoniker
Type: System.String
[in]
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.