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.

public:
 static System::String ^ GenerateManifest(Type ^ eventSourceType, System::String ^ assemblyPathToIncludeInManifest, System::Diagnostics::Tracing::EventManifestOptions flags);
public static string GenerateManifest (Type eventSourceType, string assemblyPathToIncludeInManifest, System.Diagnostics.Tracing.EventManifestOptions flags);
public static string? GenerateManifest (Type eventSourceType, string? assemblyPathToIncludeInManifest, System.Diagnostics.Tracing.EventManifestOptions flags);
static member GenerateManifest : Type * string * System.Diagnostics.Tracing.EventManifestOptions -> string
Public Shared Function GenerateManifest (eventSourceType As Type, assemblyPathToIncludeInManifest As String, flags As EventManifestOptions) As String

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

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.

public:
 static System::String ^ GenerateManifest(Type ^ eventSourceType, System::String ^ assemblyPathToIncludeInManifest);
public static string GenerateManifest (Type eventSourceType, string assemblyPathToIncludeInManifest);
public static string? GenerateManifest (Type eventSourceType, string? assemblyPathToIncludeInManifest);
static member GenerateManifest : Type * string -> string
Public Shared Function GenerateManifest (eventSourceType As Type, assemblyPathToIncludeInManifest As String) As String

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