EventSourceAttribute.Guid 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定事件來源識別碼。
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。