EventSource.GenerateManifest Method

Definition

Returns a string of the XML manifest that is associated with the current event source.

Overloads

GenerateManifest(Type, String, EventManifestOptions)

Returns a string of the XML manifest that is associated with the current event source.

GenerateManifest(Type, String)

Returns a string of the XML manifest that is associated with the current event source.

GenerateManifest(Type, String, EventManifestOptions)

Source:
EventSource.cs
Source:
EventSource.cs
Source:
EventSource.cs

Returns a string of the XML manifest that is associated with the current event source.

C#
public static string GenerateManifest(Type eventSourceType, string assemblyPathToIncludeInManifest, System.Diagnostics.Tracing.EventManifestOptions flags);
C#
public static string? GenerateManifest(Type eventSourceType, string? assemblyPathToIncludeInManifest, System.Diagnostics.Tracing.EventManifestOptions flags);

Parameters

eventSourceType
Type

The type of the event source.

assemblyPathToIncludeInManifest
String

The path to the assembly file (.dll) file to include in the provider element of the manifest.

flags
EventManifestOptions

A bitwise combination of the enumeration values that specify how the manifest is generated.

Returns

The XML data string or null.

Remarks

If flags specifies OnlyIfNeededForRegistration and the eventSourceType specified does not require explicit registration, GenerateManifest returns null.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.3, 1.4, 1.5, 1.6, 2.0, 2.1
UWP 10.0

GenerateManifest(Type, String)

Source:
EventSource.cs
Source:
EventSource.cs
Source:
EventSource.cs

Returns a string of the XML manifest that is associated with the current event source.

C#
public static string GenerateManifest(Type eventSourceType, string assemblyPathToIncludeInManifest);
C#
public static string? GenerateManifest(Type eventSourceType, string? assemblyPathToIncludeInManifest);

Parameters

eventSourceType
Type

The type of the event source.

assemblyPathToIncludeInManifest
String

The path to the assembly file (.dll) to include in the provider element of the manifest.

Returns

The XML data string.

Remarks

The information about the XML schema for the event manifest, see Event Manifest Schema.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 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
.NET Standard 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2.0, 2.1
UWP 10.0