EventSource.GenerateManifest Method
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.
Returns a string of the XML manifest that is associated with the current event source.
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. |
- 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
.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 |
- 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
.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 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: