SingletonEventSource<TDerived>.Instance Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.