다음을 통해 공유


MauiHandlersCollectionExtensions.AddHandler 메서드

정의

오버로드

AddHandler(IMauiHandlersCollection, Type, Type)

AddTransient를 통해 기본 서비스 컨테이너에 처리기를 등록합니다.

AddHandler<TType,TTypeRender>(IMauiHandlersCollection)

AddTransient를 통해 기본 서비스 컨테이너에 처리기를 등록합니다.

AddHandler<TType>(IMauiHandlersCollection, Func<IServiceProvider,IElementHandler>)

AddTransient를 통해 기본 서비스 컨테이너에 처리기를 등록합니다.

AddHandler(IMauiHandlersCollection, Type, Type)

Source:
MauiHandlersCollectionExtensions.cs
Source:
MauiHandlersCollectionExtensions.cs

AddTransient를 통해 기본 서비스 컨테이너에 처리기를 등록합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Maui::Hosting::IMauiHandlersCollection ^ AddHandler(Microsoft::Maui::Hosting::IMauiHandlersCollection ^ handlersCollection, Type ^ viewType, Type ^ handlerType);
public static Microsoft.Maui.Hosting.IMauiHandlersCollection AddHandler (this Microsoft.Maui.Hosting.IMauiHandlersCollection handlersCollection, Type viewType, Type handlerType);
static member AddHandler : Microsoft.Maui.Hosting.IMauiHandlersCollection * Type * Type -> Microsoft.Maui.Hosting.IMauiHandlersCollection
<Extension()>
Public Function AddHandler (handlersCollection As IMauiHandlersCollection, viewType As Type, handlerType As Type) As IMauiHandlersCollection

매개 변수

handlersCollection
IMauiHandlersCollection

요소 컬렉션

viewType
Type

등록할 보기 유형

handlerType
Type

요소를 나타내는 처리기 형식입니다.

반환

처리기 컬렉션

적용 대상

AddHandler<TType,TTypeRender>(IMauiHandlersCollection)

Source:
MauiHandlersCollectionExtensions.cs
Source:
MauiHandlersCollectionExtensions.cs

AddTransient를 통해 기본 서비스 컨테이너에 처리기를 등록합니다.

public:
generic <typename TType, typename TTypeRender>
 where TType : Microsoft::Maui::IElement where TTypeRender : Microsoft::Maui::IElementHandler[System::Runtime::CompilerServices::Extension]
 static Microsoft::Maui::Hosting::IMauiHandlersCollection ^ AddHandler(Microsoft::Maui::Hosting::IMauiHandlersCollection ^ handlersCollection);
public static Microsoft.Maui.Hosting.IMauiHandlersCollection AddHandler<TType,TTypeRender> (this Microsoft.Maui.Hosting.IMauiHandlersCollection handlersCollection) where TType : Microsoft.Maui.IElement where TTypeRender : Microsoft.Maui.IElementHandler;
static member AddHandler : Microsoft.Maui.Hosting.IMauiHandlersCollection -> Microsoft.Maui.Hosting.IMauiHandlersCollection (requires 'ype :> Microsoft.Maui.IElement and 'ypeRender :> Microsoft.Maui.IElementHandler)
<Extension()>
Public Function AddHandler(Of TType As IElement, TTypeRender As IElement) (handlersCollection As IMauiHandlersCollection) As IMauiHandlersCollection

형식 매개 변수

TType

등록할 요소의 형식입니다.

TTypeRender

요소를 나타내는 처리기 형식입니다.

매개 변수

handlersCollection
IMauiHandlersCollection

처리기 컬렉션

반환

처리기 컬렉션

적용 대상

AddHandler<TType>(IMauiHandlersCollection, Func<IServiceProvider,IElementHandler>)

Source:
MauiHandlersCollectionExtensions.cs
Source:
MauiHandlersCollectionExtensions.cs

AddTransient를 통해 기본 서비스 컨테이너에 처리기를 등록합니다.

public:
generic <typename TType>
 where TType : Microsoft::Maui::IElement[System::Runtime::CompilerServices::Extension]
 static Microsoft::Maui::Hosting::IMauiHandlersCollection ^ AddHandler(Microsoft::Maui::Hosting::IMauiHandlersCollection ^ handlersCollection, Func<IServiceProvider ^, Microsoft::Maui::IElementHandler ^> ^ handlerImplementationFactory);
public static Microsoft.Maui.Hosting.IMauiHandlersCollection AddHandler<TType> (this Microsoft.Maui.Hosting.IMauiHandlersCollection handlersCollection, Func<IServiceProvider,Microsoft.Maui.IElementHandler> handlerImplementationFactory) where TType : Microsoft.Maui.IElement;
static member AddHandler : Microsoft.Maui.Hosting.IMauiHandlersCollection * Func<IServiceProvider, Microsoft.Maui.IElementHandler> -> Microsoft.Maui.Hosting.IMauiHandlersCollection (requires 'ype :> Microsoft.Maui.IElement)
<Extension()>
Public Function AddHandler(Of TType As IElement) (handlersCollection As IMauiHandlersCollection, handlerImplementationFactory As Func(Of IServiceProvider, IElementHandler)) As IMauiHandlersCollection

형식 매개 변수

TType

등록할 요소의 형식입니다.

매개 변수

handlersCollection
IMauiHandlersCollection

처리기 컬렉션

handlerImplementationFactory
Func<IServiceProvider,IElementHandler>

처리기를 만드는 팩터리 메서드

반환

처리기 컬렉션

적용 대상