EventSource.GetGuid(Type) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得此事件來源實作的唯一識別碼。
public:
static Guid GetGuid(Type ^ eventSourceType);
public static Guid GetGuid(Type eventSourceType);
static member GetGuid : Type -> Guid
Public Shared Function GetGuid (eventSourceType As Type) As Guid
參數
- eventSourceType
- Type
事件來源的類型。
傳回
此事件來源類型的唯一識別碼。
備註
如果傳給建構子的名稱 EventSource 未指定 EventSourceAttribute為 ,此方法可回傳與屬性所回傳 Guid 的不同 GUID。
在這種情況下,用於註冊 的 EventSource GUID 就是由 Guid 屬性回傳的 GUID。 ]