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
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.