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
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.