DependencyService.Register Metodo

Definizione

Overload

Register<T,TImpl>()

Restituisce l'implementazione specifica per la piattaforma di tipo T.

Register<T>()

Restituisce l'implementazione specifica per la piattaforma di tipo T.

Register<T,TImpl>()

Restituisce l'implementazione specifica per la piattaforma di tipo T.

public static void Register<T,TImpl> () where T : class where TImpl : class, T;
static member Register : unit -> unit (requires 'T : null)

Parametri di tipo

T

Tipo di oggetto da registrare.

TImpl

Implementazione da registrare.

Si applica a

Register<T>()

Restituisce l'implementazione specifica per la piattaforma di tipo T.

public static void Register<T> () where T : class;
static member Register : unit -> unit (requires 'T : null)

Parametri di tipo

T

Tipo di oggetto da registrare.

Si applica a