다음을 통해 공유


ElementHandlerExtensions.GetRequiredService 메서드

정의

오버로드

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

형식 매개 변수

T

매개 변수

handler
IElementHandler

반환

T

적용 대상

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

형식 매개 변수

T

매개 변수

handler
IElementHandler
type
Type

반환

T

적용 대상