Show / Hide Table of Contents

Class AbpTagHelperLocalizer

Inheritance
object
AbpTagHelperLocalizer
Implements
IAbpTagHelperLocalizer
ITransientDependency
Inherited Members
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.Bootstrap.TagHelpers
Assembly: Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.dll
Syntax
public class AbpTagHelperLocalizer : IAbpTagHelperLocalizer, ITransientDependency

Constructors

AbpTagHelperLocalizer(IOptions<AbpMvcDataAnnotationsLocalizationOptions>, IStringLocalizerFactory)

Declaration
public AbpTagHelperLocalizer(IOptions<AbpMvcDataAnnotationsLocalizationOptions> options, IStringLocalizerFactory stringLocalizerFactory)
Parameters
Type Name Description
Microsoft.Extensions.Options.IOptions<TOptions><AbpMvcDataAnnotationsLocalizationOptions> options
Microsoft.Extensions.Localization.IStringLocalizerFactory stringLocalizerFactory

Methods

GetLocalizedText(string, ModelExplorer)

Declaration
public string GetLocalizedText(string text, ModelExplorer explorer)
Parameters
Type Name Description
string text
Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer explorer
Returns
Type Description
string

GetLocalizerOrNull(ModelExplorer)

Declaration
public IStringLocalizer GetLocalizerOrNull(ModelExplorer explorer)
Parameters
Type Name Description
Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer explorer
Returns
Type Description
Microsoft.Extensions.Localization.IStringLocalizer

GetLocalizerOrNull(Assembly)

Declaration
public IStringLocalizer GetLocalizerOrNull(Assembly assembly)
Parameters
Type Name Description
System.Reflection.Assembly assembly
Returns
Type Description
Microsoft.Extensions.Localization.IStringLocalizer

Implements

IAbpTagHelperLocalizer
ITransientDependency

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>>)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In This Article
Back to top Powered by Volosoft