ICodeNavigate2.DisplayEventHandler Method

Displays the code for a specific event handler.

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

Syntax

‘선언
Function DisplayEventHandler ( _
    lpstrObjectName As String, _
    lpstrEventName As String _
) As Integer
‘사용 방법
Dim instance As ICodeNavigate2
Dim lpstrObjectName As String
Dim lpstrEventName As String
Dim returnValue As Integer

returnValue = instance.DisplayEventHandler(lpstrObjectName, _
    lpstrEventName)
int DisplayEventHandler(
    string lpstrObjectName,
    string lpstrEventName
)
int DisplayEventHandler(
    [InAttribute] String^ lpstrObjectName, 
    [InAttribute] String^ lpstrEventName
)
abstract DisplayEventHandler : 
        lpstrObjectName:string * 
        lpstrEventName:string -> int 
function DisplayEventHandler(
    lpstrObjectName : String, 
    lpstrEventName : String
) : int

Parameters

  • lpstrObjectName
    Type: System.String
    [in] Pointer to a string containing the name of the object.
  • lpstrEventName
    Type: System.String
    [in] Pointer to a string containing the name of the event.

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

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

.NET Framework Security

See Also

Reference

ICodeNavigate2 Interface

ICodeNavigate2 Members

Microsoft.VisualStudio.Shell.Interop Namespace