共用方式為


RazorPageAdapter 建構函式

定義

多載

RazorPageAdapter(RazorPageBase)
已淘汰.
RazorPageAdapter(RazorPageBase, Type)

執行個體化 RazorPageAdapter 的新執行個體。

RazorPageAdapter(RazorPageBase)

來源:
RazorPageAdapter.cs
來源:
RazorPageAdapter.cs

警告

This constructor is obsolete and will be removed in a future version.

public:
 RazorPageAdapter(Microsoft::AspNetCore::Mvc::Razor::RazorPageBase ^ page);
public RazorPageAdapter (Microsoft.AspNetCore.Mvc.Razor.RazorPageBase page);
[System.Obsolete("This constructor is obsolete and will be removed in a future version.")]
public RazorPageAdapter (Microsoft.AspNetCore.Mvc.Razor.RazorPageBase page);
new Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.RazorPageAdapter : Microsoft.AspNetCore.Mvc.Razor.RazorPageBase -> Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.RazorPageAdapter
[<System.Obsolete("This constructor is obsolete and will be removed in a future version.")>]
new Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.RazorPageAdapter : Microsoft.AspNetCore.Mvc.Razor.RazorPageBase -> Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.RazorPageAdapter
Public Sub New (page As RazorPageBase)

參數

屬性

適用於

RazorPageAdapter(RazorPageBase, Type)

來源:
RazorPageAdapter.cs
來源:
RazorPageAdapter.cs

執行個體化 RazorPageAdapter 的新執行個體。

public:
 RazorPageAdapter(Microsoft::AspNetCore::Mvc::Razor::RazorPageBase ^ page, Type ^ modelType);
public RazorPageAdapter (Microsoft.AspNetCore.Mvc.Razor.RazorPageBase page, Type modelType);
new Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.RazorPageAdapter : Microsoft.AspNetCore.Mvc.Razor.RazorPageBase * Type -> Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.RazorPageAdapter
Public Sub New (page As RazorPageBase, modelType As Type)

參數

modelType
Type

模型型別。

適用於