Class AbpPageModel
Inheritance
object
Microsoft.AspNetCore.Mvc.RazorPages.PageModel
AbpPageModel
Implements
Microsoft.AspNetCore.Mvc.Filters.IAsyncPageFilter
Microsoft.AspNetCore.Mvc.Filters.IPageFilter
Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
Inherited Members
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.TryUpdateModelAsync<TModel>(TModel)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.TryUpdateModelAsync<TModel>(TModel, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.TryUpdateModelAsync<TModel>(TModel, string, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.TryUpdateModelAsync<TModel>(TModel, string, params System.Linq.Expressions.Expression<System.Func<TModel, object>>[])
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.TryUpdateModelAsync<TModel>(TModel, string, System.Func<Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata, bool>)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.TryUpdateModelAsync<TModel>(TModel, string, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider, params System.Linq.Expressions.Expression<System.Func<TModel, object>>[])
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.TryUpdateModelAsync<TModel>(TModel, string, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider, System.Func<Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata, bool>)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.TryUpdateModelAsync(object, System.Type, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.TryUpdateModelAsync(object, System.Type, string, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider, System.Func<Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata, bool>)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.BadRequest()
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.BadRequest(object)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.BadRequest(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.Challenge()
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.Challenge(params string[])
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.Challenge(Microsoft.AspNetCore.Authentication.AuthenticationProperties)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.Challenge(Microsoft.AspNetCore.Authentication.AuthenticationProperties, params string[])
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.Content(string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.Content(string, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.Content(string, string, System.Text.Encoding)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.Content(string, Microsoft.Net.Http.Headers.MediaTypeHeaderValue)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.Forbid()
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.Forbid(params string[])
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.Forbid(Microsoft.AspNetCore.Authentication.AuthenticationProperties)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.Forbid(Microsoft.AspNetCore.Authentication.AuthenticationProperties, params string[])
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.File(byte[], string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.File(byte[], string, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.File(System.IO.Stream, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.File(System.IO.Stream, string, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.File(string, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.File(string, string, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.LocalRedirect(string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.LocalRedirectPermanent(string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.LocalRedirectPreserveMethod(string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.LocalRedirectPermanentPreserveMethod(string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.NotFound()
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.NotFound(object)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.Page()
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.PhysicalFile(string, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.PhysicalFile(string, string, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.Redirect(string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectPermanent(string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectPreserveMethod(string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectPermanentPreserveMethod(string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToAction(string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToAction(string, object)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToAction(string, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToAction(string, string, object)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToAction(string, string, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToAction(string, string, object, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToActionPreserveMethod(string, string, object, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToActionPermanent(string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToActionPermanent(string, object)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToActionPermanent(string, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToActionPermanent(string, string, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToActionPermanent(string, string, object)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToActionPermanent(string, string, object, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToActionPermanentPreserveMethod(string, string, object, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToRoute(string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToRoute(object)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToRoute(string, object)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToRoute(string, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToRoute(string, object, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToRoutePreserveMethod(string, object, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToRoutePermanent(string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToRoutePermanent(object)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToRoutePermanent(string, object)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToRoutePermanent(string, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToRoutePermanent(string, object, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToRoutePermanentPreserveMethod(string, object, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToPage()
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToPage(object)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToPage(string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToPage(string, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToPage(string, string, object)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToPage(string, object)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToPage(string, string, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToPage(string, string, object, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToPagePermanent(string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToPagePermanent(string, object)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToPagePermanent(string, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToPagePermanent(string, string, object)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToPagePermanent(string, string, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToPagePermanent(string, object, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToPagePermanent(string, string, object, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToPagePreserveMethod(string, string, object, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RedirectToPagePermanentPreserveMethod(string, string, object, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.SignIn(System.Security.Claims.ClaimsPrincipal, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.SignIn(System.Security.Claims.ClaimsPrincipal, Microsoft.AspNetCore.Authentication.AuthenticationProperties, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.SignOut(params string[])
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.SignOut(Microsoft.AspNetCore.Authentication.AuthenticationProperties, params string[])
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.StatusCode(int)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.StatusCode(int, object)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.Unauthorized()
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.Partial(string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.Partial(string, object)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.ViewComponent(string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.ViewComponent(System.Type)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.ViewComponent(string, object)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.ViewComponent(System.Type, object)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.TryValidateModel(object)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.TryValidateModel(object, string)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.OnPageHandlerSelected(Microsoft.AspNetCore.Mvc.Filters.PageHandlerSelectedContext)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.OnPageHandlerExecuting(Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutingContext)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.OnPageHandlerExecuted(Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutedContext)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.OnPageHandlerSelectionAsync(Microsoft.AspNetCore.Mvc.Filters.PageHandlerSelectedContext)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.OnPageHandlerExecutionAsync(Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutingContext, Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutionDelegate)
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.PageContext
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.HttpContext
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.Request
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.Response
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.RouteData
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.ModelState
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.User
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.TempData
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.Url
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.MetadataProvider
Microsoft.AspNetCore.Mvc.RazorPages.PageModel.ViewData
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.AspNetCore.Mvc.UI.RazorPages
Assembly: Volo.Abp.AspNetCore.Mvc.UI.dll
Syntax
public abstract class AbpPageModel : PageModel, IAsyncPageFilter, IPageFilter, IFilterMetadata
Constructors
AbpPageModel()
Declaration
protected AbpPageModel()
Properties
AlertManager
Declaration
protected IAlertManager AlertManager { get; }
Property Value
| Type | Description |
|---|---|
| IAlertManager |
Alerts
Declaration
protected AlertList Alerts { get; }
Property Value
| Type | Description |
|---|---|
| AlertList |
AppUrlProvider
Declaration
protected IAppUrlProvider AppUrlProvider { get; }
Property Value
| Type | Description |
|---|---|
| IAppUrlProvider |
AuthorizationService
Declaration
protected IAuthorizationService AuthorizationService { get; }
Property Value
| Type | Description |
|---|---|
| Microsoft.AspNetCore.Authorization.IAuthorizationService |
Clock
Declaration
protected IClock Clock { get; }
Property Value
| Type | Description |
|---|---|
| IClock |
CurrentTenant
Declaration
protected ICurrentTenant CurrentTenant { get; }
Property Value
| Type | Description |
|---|---|
| ICurrentTenant |
CurrentUnitOfWork
Declaration
protected IUnitOfWork CurrentUnitOfWork { get; }
Property Value
| Type | Description |
|---|---|
| IUnitOfWork |
CurrentUser
Declaration
protected ICurrentUser CurrentUser { get; }
Property Value
| Type | Description |
|---|---|
| ICurrentUser |
GuidGenerator
Declaration
protected IGuidGenerator GuidGenerator { get; }
Property Value
| Type | Description |
|---|---|
| IGuidGenerator |
L
Declaration
protected IStringLocalizer L { get; }
Property Value
| Type | Description |
|---|---|
| Microsoft.Extensions.Localization.IStringLocalizer |
LazyServiceProvider
Declaration
public IAbpLazyServiceProvider LazyServiceProvider { get; set; }
Property Value
| Type | Description |
|---|---|
| IAbpLazyServiceProvider |
LocalizationResourceType
Declaration
protected Type LocalizationResourceType { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Type |
Logger
Declaration
protected ILogger Logger { get; }
Property Value
| Type | Description |
|---|---|
| Microsoft.Extensions.Logging.ILogger |
LoggerFactory
Declaration
protected ILoggerFactory LoggerFactory { get; }
Property Value
| Type | Description |
|---|---|
| Microsoft.Extensions.Logging.ILoggerFactory |
ModelValidator
Declaration
protected IModelStateValidator ModelValidator { get; }
Property Value
| Type | Description |
|---|---|
| IModelStateValidator |
ObjectMapper
Declaration
protected IObjectMapper ObjectMapper { get; }
Property Value
| Type | Description |
|---|---|
| IObjectMapper |
ObjectMapperContext
Declaration
protected Type ObjectMapperContext { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Type |
ServiceProvider
Declaration
[Obsolete("Use LazyServiceProvider instead.")]
public IServiceProvider ServiceProvider { get; set; }
Property Value
| Type | Description |
|---|---|
| System.IServiceProvider |
SettingProvider
Declaration
protected ISettingProvider SettingProvider { get; }
Property Value
| Type | Description |
|---|---|
| ISettingProvider |
StringLocalizerFactory
Declaration
protected IStringLocalizerFactory StringLocalizerFactory { get; }
Property Value
| Type | Description |
|---|---|
| Microsoft.Extensions.Localization.IStringLocalizerFactory |
UnitOfWorkManager
Declaration
protected IUnitOfWorkManager UnitOfWorkManager { get; }
Property Value
| Type | Description |
|---|---|
| IUnitOfWorkManager |
Methods
CheckPolicyAsync(string)
Declaration
protected virtual Task CheckPolicyAsync(string policyName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | policyName |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task |
CreateLocalizer()
Declaration
protected virtual IStringLocalizer CreateLocalizer()
Returns
| Type | Description |
|---|---|
| Microsoft.Extensions.Localization.IStringLocalizer |
GetAppHomeUrl()
Declaration
protected virtual string GetAppHomeUrl()
Returns
| Type | Description |
|---|---|
| string |
GetRedirectUrl(string, string)
Declaration
protected virtual string GetRedirectUrl(string returnUrl, string returnUrlHash = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | returnUrl | |
| string | returnUrlHash |
Returns
| Type | Description |
|---|---|
| string |
NoContent()
Declaration
protected virtual NoContentResult NoContent()
Returns
| Type | Description |
|---|---|
| Microsoft.AspNetCore.Mvc.NoContentResult |
PartialView<TModel>(string, TModel)
Declaration
protected virtual PartialViewResult PartialView<TModel>(string viewName, TModel model)
Parameters
| Type | Name | Description |
|---|---|---|
| string | viewName | |
| TModel | model |
Returns
| Type | Description |
|---|---|
| Microsoft.AspNetCore.Mvc.PartialViewResult |
Type Parameters
| Name | Description |
|---|---|
| TModel |
RedirectSafely(string, string)
Declaration
protected RedirectResult RedirectSafely(string returnUrl, string returnUrlHash = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | returnUrl | |
| string | returnUrlHash |
Returns
| Type | Description |
|---|---|
| Microsoft.AspNetCore.Mvc.RedirectResult |
ValidateModel()
Declaration
protected virtual void ValidateModel()
Implements
Microsoft.AspNetCore.Mvc.Filters.IAsyncPageFilter
Microsoft.AspNetCore.Mvc.Filters.IPageFilter
Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata