IVsaCodeItem.RemoveEventSource Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Removes the specified event source from the code item.
Namespace: Microsoft.Vsa
Assembly: Microsoft.Vsa (in Microsoft.Vsa.dll)
Syntax
'Declaration
<PermissionSetAttribute(SecurityAction.LinkDemand, Name := "FullTrust")> _
Sub RemoveEventSource ( _
eventSourceName As String _
)
[PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")]
void RemoveEventSource(
string eventSourceName
)
[PermissionSetAttribute(SecurityAction::LinkDemand, Name = L"FullTrust")]
void RemoveEventSource(
String^ eventSourceName
)
[<PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")>]
abstract RemoveEventSource :
eventSourceName:string -> unit
function RemoveEventSource(
eventSourceName : String
)
Parameters
eventSourceName
Type: System.StringThe 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.