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。

適用於