Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Non-hosted event providers are external applications that submit event data to a Notification Services application using the EventCollector class, EventLoader class or event-collection stored procedures.
Notification Services does not control or interact with the non-hosted event providers. Therefore, you only provide the event provider name in the application definition so that you can later track and troubleshoot events submitted by the event provider.
Using the methods of this class, you can enable and disable non-hosted event providers to allow them to submit events or prevent them from submitting events.
The following examples show how to define a non-hosted event provider and add it to the collection of non-hosted event providers for the application: