Aracılığıyla paylaş


DependencyService.Register Method

Definition

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.

Applies to