DependencyService.Register 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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
要註冊的物件類型。