EventSource.GenerateManifest Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Retourne une chaîne du manifeste XML associé à la source d’événement actuelle.
Surcharges
| Nom | Description |
|---|---|
| GenerateManifest(Type, String) |
Retourne une chaîne du manifeste XML associé à la source d’événement actuelle. |
| GenerateManifest(Type, String, EventManifestOptions) |
Retourne une chaîne du manifeste XML associé à la source d’événement actuelle. |
GenerateManifest(Type, String)
- Source:
- EventSource.cs
- Source:
- EventSource.cs
- Source:
- EventSource.cs
- Source:
- EventSource.cs
- Source:
- EventSource.cs
Retourne une chaîne du manifeste XML associé à la source d’événement actuelle.
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
Paramètres
- eventSourceType
- Type
Type de la source d’événement.
- assemblyPathToIncludeInManifest
- String
Chemin d’accès au fichier d’assembly (.dll) à inclure dans l’élément fournisseur du manifeste.
Retours
Chaîne de données XML.
Remarques
Les informations sur le schéma XML du manifeste d’événement, consultez Schéma du manifeste d’événement.
S’applique à
GenerateManifest(Type, String, EventManifestOptions)
- Source:
- EventSource.cs
- Source:
- EventSource.cs
- Source:
- EventSource.cs
- Source:
- EventSource.cs
- Source:
- EventSource.cs
Retourne une chaîne du manifeste XML associé à la source d’événement actuelle.
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
Paramètres
- eventSourceType
- Type
Type de la source d’événement.
- assemblyPathToIncludeInManifest
- String
Chemin d’accès au fichier d’assembly (.dll) à inclure dans l’élément fournisseur du manifeste.
- flags
- EventManifestOptions
Combinaison au niveau du bit des valeurs d’énumération qui spécifient la façon dont le manifeste est généré.
Retours
Chaîne de données XML ou null.
Remarques
Si flags les spécifications OnlyIfNeededForRegistration et le eventSourceType spécifié ne nécessitent pas d’inscription explicite, GenerateManifest retourne null.