PropertyCollection::GetOrCreateSingletonProperty<T> Method (Func<T>^)
Gets or creates a property of type T from the property collection.
Assembly: Microsoft.VisualStudio.CoreUtility (in Microsoft.VisualStudio.CoreUtility.dll)
public: generic<typename T> where T : ref class T GetOrCreateSingletonProperty( Func<T>^ creator )
Parameters
- creator
-
Type:
System::Func<T>^
The delegate used to create the property (if needed).
Return Value
Type: TAn instance of the property. If there is already a property of that type, it returns the existing property. Otherwise, this method uses creator to create an instance of that type.
Type Parameters
- T
The type of the property.
The key used in the property collection is the type of T.
Show: