共用方式為


IVsMenuEditorTransactionEvents.BeginTransaction(UInt32) Method

Definition

Marks the beginning of a transaction for an editor event.

public:
 int BeginTransaction(System::UInt32 trans);
public:
 int BeginTransaction(unsigned int trans);
int BeginTransaction(unsigned int trans);
public int BeginTransaction (uint trans);
abstract member BeginTransaction : uint32 -> int
Public Function BeginTransaction (trans As UInteger) As Integer

Parameters

trans
UInt32

[in] The menu editor action represented by the transaction. A value from the __MENUEDITOR_TRANSACTION enumeration.

Returns

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  
);  

Applies to