Partager via


DependencyService.Resolve<T>(DependencyFetchTarget) Method

Definition

public static T Resolve<T> (Microsoft.Maui.Controls.DependencyFetchTarget fallbackFetchTarget = Microsoft.Maui.Controls.DependencyFetchTarget.GlobalInstance) where T : class;
static member Resolve : Microsoft.Maui.Controls.DependencyFetchTarget -> 'T (requires 'T : null)
Public Shared Function Resolve(Of T As Class) (Optional fallbackFetchTarget As DependencyFetchTarget = Microsoft.Maui.Controls.DependencyFetchTarget.GlobalInstance) As T

Type Parameters

T

Parameters

fallbackFetchTarget
DependencyFetchTarget

Returns

T

Applies to