共用方式為


IVsMenuEditorTransactionEvents.BeginTransaction Method

Marks the beginning of a transaction for an editor event.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'宣告
Function BeginTransaction ( _
    trans As UInteger _
) As Integer
'用途
Dim instance As IVsMenuEditorTransactionEvents
Dim trans As UInteger
Dim returnValue As Integer

returnValue = instance.BeginTransaction(trans)
int BeginTransaction(
    uint trans
)
int BeginTransaction(
    [InAttribute] unsigned int trans
)
abstract BeginTransaction : 
        trans:uint32 -> int 
function BeginTransaction(
    trans : uint
) : int

Parameters

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 vsshell80.idl:

[C++]

HRESULT IVsMenuEditorTransactionEvents::BeginTransaction(
   [in] MENUEDITOR_TRANSACTION trans
);

.NET Framework Security

See Also

Reference

IVsMenuEditorTransactionEvents Interface

IVsMenuEditorTransactionEvents Members

Microsoft.VisualStudio.Shell.Interop Namespace