Uredi

Deli z drugimi prek


IVsaCodeItem.RemoveEventSource(String) Method

Definition

Removes the specified event source from the code item.

public:
 void RemoveEventSource(System::String ^ eventSourceName);
public void RemoveEventSource (string eventSourceName);
abstract member RemoveEventSource : string -> unit
Public Sub RemoveEventSource (eventSourceName As String)

Parameters

eventSourceName
String

The programmatic name of the event source to be removed.

Remarks

Removing an event source does not remove the underlying event handler from source text. Rather, events no longer raise notifications to the event handler. Therefore, you will get a compiler error if you delete an event source but leave the underlying function in the source code.

Applies to