IVsaCodeItem.RemoveEventSource(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for