DependencyService.Register 方法

定義

多載

Register<T,TImpl>()

註冊類型 T 的平台特定實作。

Register<T>()

註冊類型 T 的平台特定實作。

Register<T,TImpl>()

註冊類型 T 的平台特定實作。

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

類型參數

T

要註冊的物件類型。

TImpl

要註冊的實作。

適用於

Register<T>()

註冊類型 T 的平台特定實作。

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

類型參數

T

要註冊的物件類型。

適用於