Compartilhar via


ElementHandlerExtensions.GetRequiredService Método

Definição

Sobrecargas

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

GetRequiredService<T>(IElementHandler)

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

Parâmetros de tipo

T

Parâmetros

handler
IElementHandler

Retornos

T

Aplica-se a

GetRequiredService<T>(IElementHandler, Type)

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

Parâmetros de tipo

T

Parâmetros

handler
IElementHandler
type
Type

Retornos

T

Aplica-se a