Share via


PropertyCollection.GetOrCreateSingletonProperty<T> Method (Func<T>)

Namespace:  Microsoft.VisualStudio.Utilities
Assembly:  Microsoft.VisualStudio.CoreUtility (in Microsoft.VisualStudio.CoreUtility.dll)

Syntax

'Declaration
Public Function GetOrCreateSingletonProperty(Of T As Class) ( _
    creator As Func(Of T) _
) As T
public T GetOrCreateSingletonProperty<T>(
    Func<T> creator
)
where T : class
public:
generic<typename T>
where T : ref class
T GetOrCreateSingletonProperty(
    Func<T>^ creator
)
member GetOrCreateSingletonProperty : 
        creator:Func<'T> -> 'T  when 'T : not struct
JScript does not support generic types or methods.

Type Parameters

  • T

Parameters

Return Value

Type: T

.NET Framework Security

See Also

Reference

PropertyCollection Class

GetOrCreateSingletonProperty Overload

Microsoft.VisualStudio.Utilities Namespace