다음을 통해 공유


IPageModelFactoryProvider.CreateModelFactory 메서드

정의

지정된 PageContext가 지정된 Razor Pages에 대한 모델을 생성하기 위한 팩터리를 만듭니다.

public:
 Func<Microsoft::AspNetCore::Mvc::RazorPages::PageContext ^, System::Object ^> ^ CreateModelFactory(Microsoft::AspNetCore::Mvc::RazorPages::CompiledPageActionDescriptor ^ descriptor);
public Func<Microsoft.AspNetCore.Mvc.RazorPages.PageContext,object> CreateModelFactory (Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor descriptor);
public Func<Microsoft.AspNetCore.Mvc.RazorPages.PageContext,object>? CreateModelFactory (Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor descriptor);
abstract member CreateModelFactory : Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor -> Func<Microsoft.AspNetCore.Mvc.RazorPages.PageContext, obj>
Public Function CreateModelFactory (descriptor As CompiledPageActionDescriptor) As Func(Of PageContext, Object)

매개 변수

반환

Razor 페이지 모델 팩터리입니다.

적용 대상