PageActionDescriptorProvider 构造函数

定义

实例化 PageActionDescriptorProvider 的新实例。

public:
 PageActionDescriptorProvider(System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Mvc::ApplicationModels::IPageRouteModelProvider ^> ^ pageRouteModelProviders, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Mvc::MvcOptions ^> ^ mvcOptionsAccessor, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Mvc::RazorPages::RazorPagesOptions ^> ^ pagesOptionsAccessor);
public PageActionDescriptorProvider (System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.ApplicationModels.IPageRouteModelProvider> pageRouteModelProviders, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> mvcOptionsAccessor, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.RazorPages.RazorPagesOptions> pagesOptionsAccessor);
new Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionDescriptorProvider : seq<Microsoft.AspNetCore.Mvc.ApplicationModels.IPageRouteModelProvider> * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.RazorPages.RazorPagesOptions> -> Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionDescriptorProvider
Public Sub New (pageRouteModelProviders As IEnumerable(Of IPageRouteModelProvider), mvcOptionsAccessor As IOptions(Of MvcOptions), pagesOptionsAccessor As IOptions(Of RazorPagesOptions))

参数

pageRouteModelProviders
IEnumerable<IPageRouteModelProvider>

要使用的 IPageRouteModelProvider

mvcOptionsAccessor
IOptions<MvcOptions>

MvcOptions

适用于