DependencyService.Register 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.
Overloads
Register<T,TImpl>() |
Registers the platform-specific implementation of type T. |
Register<T>() |
Registers the platform-specific implementation of type T. |
Register<T,TImpl>()
Registers the platform-specific implementation of type T.
public static void Register<T,TImpl> () where T : class where TImpl : class, T;
static member Register : unit -> unit (requires 'T : null)
Type Parameters
- T
The type of object to register.
- TImpl
The implementation to register.
Applies to
Register<T>()
Registers the platform-specific implementation of type T.
public static void Register<T> () where T : class;
static member Register : unit -> unit (requires 'T : null)
Type Parameters
- T
The type of object to register.