語言

EventSourceAttribute.Guid 屬性

定義

取得或設定事件來源識別碼。

public:
 property System::String ^ Guid { System::String ^ get(); void set(System::String ^ value); };
public string Guid { get; set; }
public string? Guid { get; set; }
member this.Guid : string with get, set
Public Property Guid As String

屬性值

事件來源識別碼。

備註

在標準用法中,定義事件來源或參考時不需要指定 GUID,因為 GUID 是隱含地從事件來源類別的名稱衍生而來。 除非在升級現有 ETW 供應商使用事件來源時,否則不建議明確定義 GUID。

適用於