EventProvider(Guid) Constructor
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.
Initializes a new instance of the EventProvider class.
public:
EventProvider(Guid providerGuid);
[System.Security.SecurityCritical]
public EventProvider (Guid providerGuid);
public EventProvider (Guid providerGuid);
[<System.Security.SecurityCritical>]
new System.Diagnostics.Eventing.EventProvider : Guid -> System.Diagnostics.Eventing.EventProvider
new System.Diagnostics.Eventing.EventProvider : Guid -> System.Diagnostics.Eventing.EventProvider
Public Sub New (providerGuid As Guid)
Parameters
- providerGuid
- Guid
Guid that uniquely identifies the provider.
- Attributes
Exceptions
There is not enough memory to complete the operation.
The classes in the System.Diagnostics.Eventing namespace work only on Windows Vista.
The providerGuid
parameter cannot be null.
An error returned by the ETW subsystem.
Remarks
Registers the provider. To remove the registration when finished, call the Close method.