Compartilhar via


ElementHandlerExtensions.GetService Método

Definição

Sobrecargas

GetService<T>(IElementHandler)
GetService<T>(IElementHandler, Type)

GetService<T>(IElementHandler)

Origem:
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

Parâmetros de tipo

T

Parâmetros

handler
IElementHandler

Retornos

T

Aplica-se a

GetService<T>(IElementHandler, Type)

Origem:
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

Parâmetros de tipo

T

Parâmetros

handler
IElementHandler
type
Type

Retornos

T

Aplica-se a