EventProviderTraceListener Constructors

Definition

Initializes a new instance of the EventProviderTraceListener class.

Overloads

EventProviderTraceListener(String)

Initializes a new instance of the EventProviderTraceListener class using the specified provider identifier.

EventProviderTraceListener(String, String)

Initializes a new instance of the EventProviderTraceListener class using the specified provider identifier and name of the listener.

EventProviderTraceListener(String, String, String)

Initializes a new instance of the EventProviderTraceListener class using the specified provider identifier, name of the listener, and delimiter.

EventProviderTraceListener(String)

Initializes a new instance of the EventProviderTraceListener class using the specified provider identifier.

C#
public EventProviderTraceListener(string providerId);

Parameters

providerId
String

A unique string Guid that identifies the provider.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

EventProviderTraceListener(String, String)

Initializes a new instance of the EventProviderTraceListener class using the specified provider identifier and name of the listener.

C#
public EventProviderTraceListener(string providerId, string name);

Parameters

providerId
String

A unique string Guid that identifies the provider.

name
String

Name of the listener.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

EventProviderTraceListener(String, String, String)

Initializes a new instance of the EventProviderTraceListener class using the specified provider identifier, name of the listener, and delimiter.

C#
public EventProviderTraceListener(string providerId, string name, string delimiter);

Parameters

providerId
String

A unique string Guid that identifies the provider.

name
String

Name of the listener.

delimiter
String

Delimiter used to delimit the event data. (For more details, see the Delimiter property.)

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1