DependencyService.Resolve<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.
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
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.