Share via


SingletonEventSource<TDerived>.Instance Property

Definition

The singleton instance of the event source. We have to create an instance to act as the event sink for VS, but since the derived class's events are exposed as statics, we don't need to expose the Instance property to users of the derived class.

protected:
 static property TDerived Instance { TDerived get(); };
protected:
 static property TDerived Instance { TDerived get(); };
protected static TDerived Instance { get; }
static member Instance : 'Derived
Protected Shared ReadOnly Property Instance As TDerived

Property Value

TDerived

Returns {0}.

Remarks

Visual Studio requires that an event sink must be an instance, but since the derived class's events are exposed as statics, it isn't necessary to expose the Instance property to users of the derived class.

Applies to