NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ICodeNavigatorService.NavigateToEvent (IComponent, EventDescriptor, Int32, String)

Requests that the source view for the file be displayed and that the cursor be placed within the block for the given event.

[Visual Basic]
Overloads Function NavigateToEvent( _
   ByVal component As IComponent, _
   ByVal eventdesc As EventDescriptor, _
   ByVal mods As Integer, _
   ByVal name As String _
) As String
[C#]
string NavigateToEvent(
   IComponent component,
   EventDescriptor eventdesc,
   int mods,
   string name
);
[C++]
String* NavigateToEvent(
   IComponent* component,
   EventDescriptor* eventdesc,
   int mods,
   String* name
) = 0;
[JScript]
function NavigateToEvent(
   component : IComponent,
   eventdesc : EventDescriptor,
   mods : int,
   name : String
) : String;

Parameters

component
The component that the event is bound to.
eventdesc
[To be supplied.]
mods
The modifiers for the method, should it need to be created.
name
The name of the method.

Return Value

The name of the event method that was created, or a null reference (in Visual Basic Nothing) if an existing method was found.

Remarks

This will navigate to the given event name, and if no such method exists, it should create one.

See Also

ICodeNavigatorService Interface | ICodeNavigatorService Members | System.ComponentModel.Design Namespace | ICodeNavigatorService.NavigateToEvent Overload List