IJSVsaCodeItem.AddEventSource(String, 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.
Adds an event source to the code item. The code item uses the event source to hook up an event to the named event source by calling the IVsaSite.GetEventSourceInstance method, which is implemented by the host.
public:
void AddEventSource(System::String ^ eventSourceName, System::String ^ eventSourceType);
public void AddEventSource (string eventSourceName, string eventSourceType);
abstract member AddEventSource : string * string -> unit
Public Sub AddEventSource (eventSourceName As String, eventSourceType As String)
Parameters
- eventSourceName
- String
A programmatic name of the event source.
- eventSourceType
- String
The type name of the event source.
Applies to
Zusammenarbeit auf GitHub
Die Quelle für diesen Inhalt finden Sie auf GitHub, wo Sie auch Issues und Pull Requests erstellen und überprüfen können. Weitere Informationen finden Sie in unserem Leitfaden für Mitwirkende.