Bewerken

Delen via


EventProvider(Guid) Constructor

Definition

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.

Applies to