次の方法で共有


ElementHandlerExtensions.GetRequiredService メソッド

定義

オーバーロード

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

GetRequiredService<T>(IElementHandler)

ソース:
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)

ソース:
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

適用対象