ElementHandlerExtensions.GetRequiredService 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
GetRequiredService<T>(IElementHandler) | |
GetRequiredService<T>(IElementHandler, Type) |
GetRequiredService<T>(IElementHandler)
- Source:
- ElementHandlerExtensions.cs
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static T GetRequiredService(Microsoft::Maui::IElementHandler ^ handler);
public static T GetRequiredService<T> (this Microsoft.Maui.IElementHandler handler);
static member GetRequiredService : Microsoft.Maui.IElementHandler -> 'T
<Extension()>
Public Function GetRequiredService(Of T) (handler As IElementHandler) As T
Type Parameters
- T
Parameters
- handler
- IElementHandler
Returns
T
Applies to
GetRequiredService<T>(IElementHandler, Type)
- Source:
- ElementHandlerExtensions.cs
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static T GetRequiredService(Microsoft::Maui::IElementHandler ^ handler, Type ^ type);
public static T GetRequiredService<T> (this Microsoft.Maui.IElementHandler handler, Type type);
static member GetRequiredService : Microsoft.Maui.IElementHandler * Type -> 'T
<Extension()>
Public Function GetRequiredService(Of T) (handler As IElementHandler, type As Type) As T
Type Parameters
- T
Parameters
- handler
- IElementHandler
- type
- Type
Returns
T
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.