IncrementingEventCounter(String, EventSource) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 IncrementingEventCounter 類別的新執行個體。
public:
IncrementingEventCounter(System::String ^ name, System::Diagnostics::Tracing::EventSource ^ eventSource);
public IncrementingEventCounter(string name, System.Diagnostics.Tracing.EventSource eventSource);
new System.Diagnostics.Tracing.IncrementingEventCounter : string * System.Diagnostics.Tracing.EventSource -> System.Diagnostics.Tracing.IncrementingEventCounter
Public Sub New (name As String, eventSource As EventSource)
參數
- name
- String
這個例子的名稱 IncrementingEventCounter 。
- eventSource
- EventSource
事件來源。
備註
IncrementingEventCounter 除非明確被處置,否則活的時間取決於他們所依附的對象 EventSource 。