DependencyResolver.ResolveUsing 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.
Overloads
| Name | Description |
|---|---|
| ResolveUsing(Func<Type,Object[],Object>) |
Sets a resolver function that takes a type and constructor arguments. |
| ResolveUsing(Func<Type,Object>) |
Sets a resolver function that takes only a type. |
ResolveUsing(Func<Type,Object[],Object>)
- Source:
- DependencyResolver.cs
- Source:
- DependencyResolver.cs
- Source:
- DependencyResolver.cs
- Source:
- DependencyResolver.cs
Sets a resolver function that takes a type and constructor arguments.
public:
static void ResolveUsing(Func<Type ^, cli::array <System::Object ^> ^, System::Object ^> ^ resolver);
public static void ResolveUsing(Func<Type,object[],object> resolver);
static member ResolveUsing : Func<Type, obj[], obj> -> unit
Public Shared Sub ResolveUsing (resolver As Func(Of Type, Object(), Object))
Parameters
Remarks
resolver must return null for types that it does not support, because a return value of null passes the type through to Microsoft.Maui.Controls so that it may attempt to resolve the type itself.
Applies to
ResolveUsing(Func<Type,Object>)
- Source:
- DependencyResolver.cs
- Source:
- DependencyResolver.cs
- Source:
- DependencyResolver.cs
- Source:
- DependencyResolver.cs
Sets a resolver function that takes only a type.
public:
static void ResolveUsing(Func<Type ^, System::Object ^> ^ resolver);
public static void ResolveUsing(Func<Type,object> resolver);
static member ResolveUsing : Func<Type, obj> -> unit
Public Shared Sub ResolveUsing (resolver As Func(Of Type, Object))
Parameters
Remarks
resolver must return null for types that it does not support, because a return value of null passes the type through to Microsoft.Maui.Controls so that it may attempt to resolve the type itself.