DependencyService.RegisterSingleton<T>(T) Method
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.
public:
generic <typename T>
where T : class static void RegisterSingleton(T instance);
public static void RegisterSingleton<T> (T instance) where T : class;
static member RegisterSingleton : 'T -> unit (requires 'T : null)
Public Shared Sub RegisterSingleton(Of T As Class) (instance As T)
Type Parameters
- T
Parameters
- instance
- T