ElementHandlerExtensions.GetService 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
GetService<T>(IElementHandler) | |
GetService<T>(IElementHandler, Type) |
GetService<T>(IElementHandler)
- Source:
- ElementHandlerExtensions.cs
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static T GetService(Microsoft::Maui::IElementHandler ^ handler);
public static T? GetService<T> (this Microsoft.Maui.IElementHandler handler);
static member GetService : Microsoft.Maui.IElementHandler -> 'T
<Extension()>
Public Function GetService(Of T) (handler As IElementHandler) As T
Type Parameters
- T
Parameters
- handler
- IElementHandler
Returns
T
Applies to
GetService<T>(IElementHandler, Type)
- Source:
- ElementHandlerExtensions.cs
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static T GetService(Microsoft::Maui::IElementHandler ^ handler, Type ^ type);
public static T? GetService<T> (this Microsoft.Maui.IElementHandler handler, Type type);
static member GetService : Microsoft.Maui.IElementHandler * Type -> 'T
<Extension()>
Public Function GetService(Of T) (handler As IElementHandler, type As Type) As T
Type Parameters
- T
Parameters
- handler
- IElementHandler
- type
- Type
Returns
T
Applies to
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.