EventSource.GenerateManifest 方法

定義

傳回 XML 資訊清單的字串,與目前的事件來源相關。

多載

GenerateManifest(Type, String)

傳回 XML 資訊清單的字串,與目前的事件來源相關。

GenerateManifest(Type, String, EventManifestOptions)

傳回 XML 資訊清單的字串,與目前的事件來源相關。

GenerateManifest(Type, String)

傳回 XML 資訊清單的字串,與目前的事件來源相關。

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

參數

eventSourceType
Type

事件來源的類型。

assemblyPathToIncludeInManifest
String

要包含在資訊清單之 provider 項目的組件檔 (.dll) 路徑。

傳回

String

XML 資料字串。

備註

事件資訊清單的 XML 架構相關資訊,請參閱 事件資訊清單架構

適用於

GenerateManifest(Type, String, EventManifestOptions)

傳回 XML 資訊清單的字串,與目前的事件來源相關。

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

參數

eventSourceType
Type

事件來源的類型。

assemblyPathToIncludeInManifest
String

要包含在資訊清單之 provider 項目的組件檔 (.dll) 路徑。

flags
EventManifestOptions

列舉值的位元組合,指定產生資訊清單的方式。

傳回

String

XML 資料字串或 null

備註

如果 flags 指定 OnlyIfNeededForRegistrationeventSourceType 指定的 不需要明確註冊, GenerateManifest 則傳 null 回 。

適用於