NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Determining Whether an Event Source Exists

Once you identify a source for a particular event log, this information is stored in the server's registry files until you remove that source. If you try to re-register a source that has already been registered as a valid source for a given log, a run-time error is raised. You can use the SourceExists method to determine whether or not a particular source has already been registered.

To determine if a source has already been registered on the local computer

To determine a source has already been registered on a remote computer

See Also

Removing an Event Source