Compartilhar via


ICodeNavigate2.DisplayEventHandler(String, String) Method

Definition

Displays the code for a specific event handler.

public:
 int DisplayEventHandler(System::String ^ lpstrObjectName, System::String ^ lpstrEventName);
public:
 int DisplayEventHandler(Platform::String ^ lpstrObjectName, Platform::String ^ lpstrEventName);
int DisplayEventHandler(std::wstring const & lpstrObjectName, std::wstring const & lpstrEventName);
public int DisplayEventHandler (string lpstrObjectName, string lpstrEventName);
abstract member DisplayEventHandler : string * string -> int
Public Function DisplayEventHandler (lpstrObjectName As String, lpstrEventName As String) As Integer

Parameters

lpstrObjectName
String

[in] Pointer to a string containing the name of the object.

lpstrEventName
String

[in] Pointer to a string containing the name of the event.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From designer.idl:

HRESULT ICodeNavigate2::DisplayEventHandler(  
   [in] LPCOLESTR lpstrObjectName,   
   [in] LPCOLESTR lpstrEventName  
);  

Applies to