Show / Hide Table of Contents

Class AbpPageModel

Inheritance
object
PageModel
AbpPageModel
IndexModel
TenantSwitchModalModel
AuthorityDelegationModal
DelegateNewUserModal
LinkUsersModalModel
AccountPageModel
AccountPageModel
ConsentModel
AuditTestPage
AuthTestPage
ExceptionTestPage
FeatureTestPage
IndexModel
UnitOfWorkTestPage
AuditLogsPageModel
FeatureManagementModal
IdentityPageModel
IdentityServerPageModel
LanguageManagementPageModel
AlertsModel
BadgesModel
BordersModel
BreadcrumbsModel
AbpOpenIddictProPageModel
IndexModel
OpenIddictProPageModel
PermissionManagementModal
SendTestEmailModal
IndexModel
TenantManagementPageModel
TextTemplateManagementPageModel
VirtualFileExplorerPageModel
AddWidgetModal
CmsKitAdminPageModel
CmsKitPageModel
IndexModel
AdminPageModel
DetailModel
EditTextModal
IndexModel
IndexModel
IndexModel
ProPageModel
CmsKitProPublicPageModel
EmailPreferencesModel
CmsKitPublicPageModelBase
CommonPageModel
DocsAdminPageModel
IndexModel
FormsPageModel
IndexModel
FormsPageModel
PaymentPageModel
PaymentPageModel
PrePaymentModel
PrePaymentModel
PrePaymentModel
PrePaymentModel
SaasHostPageModel
ErrorModel
Implements
IAsyncPageFilter
IPageFilter
IFilterMetadata
Inherited Members
PageModel.TryUpdateModelAsync<TModel>(TModel)
PageModel.TryUpdateModelAsync<TModel>(TModel, string)
PageModel.TryUpdateModelAsync<TModel>(TModel, string, IValueProvider)
PageModel.TryUpdateModelAsync<TModel>(TModel, string, params Expression<Func<TModel, object>>[])
PageModel.TryUpdateModelAsync<TModel>(TModel, string, Func<ModelMetadata, bool>)
PageModel.TryUpdateModelAsync<TModel>(TModel, string, IValueProvider, params Expression<Func<TModel, object>>[])
PageModel.TryUpdateModelAsync<TModel>(TModel, string, IValueProvider, Func<ModelMetadata, bool>)
PageModel.TryUpdateModelAsync(object, Type, string)
PageModel.TryUpdateModelAsync(object, Type, string, IValueProvider, Func<ModelMetadata, bool>)
PageModel.BadRequest()
PageModel.BadRequest(object)
PageModel.BadRequest(ModelStateDictionary)
PageModel.Challenge()
PageModel.Challenge(params string[])
PageModel.Challenge(AuthenticationProperties)
PageModel.Challenge(AuthenticationProperties, params string[])
PageModel.Content(string)
PageModel.Content(string, string)
PageModel.Content(string, string, Encoding)
PageModel.Content(string, MediaTypeHeaderValue)
PageModel.Forbid()
PageModel.Forbid(params string[])
PageModel.Forbid(AuthenticationProperties)
PageModel.Forbid(AuthenticationProperties, params string[])
PageModel.File(byte[], string)
PageModel.File(byte[], string, string)
PageModel.File(Stream, string)
PageModel.File(Stream, string, string)
PageModel.File(string, string)
PageModel.File(string, string, string)
PageModel.LocalRedirect(string)
PageModel.LocalRedirectPermanent(string)
PageModel.LocalRedirectPreserveMethod(string)
PageModel.LocalRedirectPermanentPreserveMethod(string)
PageModel.NotFound()
PageModel.NotFound(object)
PageModel.Page()
PageModel.PhysicalFile(string, string)
PageModel.PhysicalFile(string, string, string)
PageModel.Redirect(string)
PageModel.RedirectPermanent(string)
PageModel.RedirectPreserveMethod(string)
PageModel.RedirectPermanentPreserveMethod(string)
PageModel.RedirectToAction(string)
PageModel.RedirectToAction(string, object)
PageModel.RedirectToAction(string, string)
PageModel.RedirectToAction(string, string, object)
PageModel.RedirectToAction(string, string, string)
PageModel.RedirectToAction(string, string, object, string)
PageModel.RedirectToActionPreserveMethod(string, string, object, string)
PageModel.RedirectToActionPermanent(string)
PageModel.RedirectToActionPermanent(string, object)
PageModel.RedirectToActionPermanent(string, string)
PageModel.RedirectToActionPermanent(string, string, string)
PageModel.RedirectToActionPermanent(string, string, object)
PageModel.RedirectToActionPermanent(string, string, object, string)
PageModel.RedirectToActionPermanentPreserveMethod(string, string, object, string)
PageModel.RedirectToRoute(string)
PageModel.RedirectToRoute(object)
PageModel.RedirectToRoute(string, object)
PageModel.RedirectToRoute(string, string)
PageModel.RedirectToRoute(string, object, string)
PageModel.RedirectToRoutePreserveMethod(string, object, string)
PageModel.RedirectToRoutePermanent(string)
PageModel.RedirectToRoutePermanent(object)
PageModel.RedirectToRoutePermanent(string, object)
PageModel.RedirectToRoutePermanent(string, string)
PageModel.RedirectToRoutePermanent(string, object, string)
PageModel.RedirectToRoutePermanentPreserveMethod(string, object, string)
PageModel.RedirectToPage()
PageModel.RedirectToPage(object)
PageModel.RedirectToPage(string)
PageModel.RedirectToPage(string, string)
PageModel.RedirectToPage(string, string, object)
PageModel.RedirectToPage(string, object)
PageModel.RedirectToPage(string, string, string)
PageModel.RedirectToPage(string, string, object, string)
PageModel.RedirectToPagePermanent(string)
PageModel.RedirectToPagePermanent(string, object)
PageModel.RedirectToPagePermanent(string, string)
PageModel.RedirectToPagePermanent(string, string, object)
PageModel.RedirectToPagePermanent(string, string, string)
PageModel.RedirectToPagePermanent(string, object, string)
PageModel.RedirectToPagePermanent(string, string, object, string)
PageModel.RedirectToPagePreserveMethod(string, string, object, string)
PageModel.RedirectToPagePermanentPreserveMethod(string, string, object, string)
PageModel.SignIn(ClaimsPrincipal, string)
PageModel.SignIn(ClaimsPrincipal, AuthenticationProperties, string)
PageModel.SignOut(params string[])
PageModel.SignOut(AuthenticationProperties, params string[])
PageModel.StatusCode(int)
PageModel.StatusCode(int, object)
PageModel.Unauthorized()
PageModel.Partial(string)
PageModel.Partial(string, object)
PageModel.ViewComponent(string)
PageModel.ViewComponent(Type)
PageModel.ViewComponent(string, object)
PageModel.ViewComponent(Type, object)
PageModel.TryValidateModel(object)
PageModel.TryValidateModel(object, string)
PageModel.OnPageHandlerSelected(PageHandlerSelectedContext)
PageModel.OnPageHandlerExecuting(PageHandlerExecutingContext)
PageModel.OnPageHandlerExecuted(PageHandlerExecutedContext)
PageModel.OnPageHandlerSelectionAsync(PageHandlerSelectedContext)
PageModel.OnPageHandlerExecutionAsync(PageHandlerExecutingContext, PageHandlerExecutionDelegate)
PageModel.PageContext
PageModel.HttpContext
PageModel.Request
PageModel.Response
PageModel.RouteData
PageModel.ModelState
PageModel.User
PageModel.TempData
PageModel.Url
PageModel.MetadataProvider
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
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
IStringLocalizer

LazyServiceProvider

Declaration
public IAbpLazyServiceProvider LazyServiceProvider { get; set; }
Property Value
Type Description
IAbpLazyServiceProvider

LocalizationResourceType

Declaration
protected Type? LocalizationResourceType { get; set; }
Property Value
Type Description
Type

Logger

Declaration
protected ILogger Logger { get; }
Property Value
Type Description
ILogger

LoggerFactory

Declaration
protected ILoggerFactory LoggerFactory { get; }
Property Value
Type Description
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
Type

ServiceProvider

Declaration
[Obsolete("Use LazyServiceProvider instead.")]
public IServiceProvider ServiceProvider { get; set; }
Property Value
Type Description
IServiceProvider

SettingProvider

Declaration
protected ISettingProvider SettingProvider { get; }
Property Value
Type Description
ISettingProvider

StringLocalizerFactory

Declaration
protected IStringLocalizerFactory StringLocalizerFactory { get; }
Property Value
Type Description
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
Task

CreateLocalizer()

Declaration
protected virtual IStringLocalizer CreateLocalizer()
Returns
Type Description
IStringLocalizer

GetAppHomeUrlAsync()

Declaration
protected virtual Task<string> GetAppHomeUrlAsync()
Returns
Type Description
Task<string>

GetRedirectUrlAsync(string, string?)

Declaration
protected virtual Task<string> GetRedirectUrlAsync(string returnUrl, string? returnUrlHash = null)
Parameters
Type Name Description
string returnUrl
string returnUrlHash
Returns
Type Description
Task<string>

NoContent()

Declaration
protected virtual NoContentResult NoContent()
Returns
Type Description
NoContentResult

NormalizeReturnUrlAsync(string)

Declaration
protected virtual Task<string> NormalizeReturnUrlAsync(string returnUrl)
Parameters
Type Name Description
string returnUrl
Returns
Type Description
Task<string>

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
PartialViewResult
Type Parameters
Name Description
TModel

RedirectSafelyAsync(string, string?)

Declaration
protected virtual Task<RedirectResult> RedirectSafelyAsync(string returnUrl, string? returnUrlHash = null)
Parameters
Type Name Description
string returnUrl
string returnUrlHash
Returns
Type Description
Task<RedirectResult>

ValidateModel()

Declaration
protected virtual void ValidateModel()

Implements

IAsyncPageFilter
IPageFilter
IFilterMetadata

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform