DependencyService.Get<T>(DependencyFetchTarget) 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.
Returns the platform-specific implementation of type T
.
public static T Get<T> (Xamarin.Forms.DependencyFetchTarget fetchTarget = Xamarin.Forms.DependencyFetchTarget.GlobalInstance) where T : class;
static member Get : Xamarin.Forms.DependencyFetchTarget -> 'T (requires 'T : null)
Type Parameters
- T
The type of object to fetch.
Parameters
- fetchTarget
- DependencyFetchTarget
The dependency fetch target.
Returns
T