Table of Contents

Class LocalizationServiceExtensions

Namespace
CMS.Helpers
Assembly
CMS.Helpers.dll

Extension methods for the ILocalizationService.

public static class LocalizationServiceExtensions
Inheritance
object
LocalizationServiceExtensions

Methods

GetStringFormat(ILocalizationService, string, params object[])

Gets the string by the specified resource key and formats it with the standard string.Format(string, params object[]) method.

public static string GetStringFormat(this ILocalizationService localizationService, string resourceKey, params object[] parameters)

Parameters

localizationService ILocalizationService

Localization service.

resourceKey string

Resource key.

parameters object[]

Parameters for the formatting.

Returns

string

Exceptions

FormatException

Thrown when the system culture string cannot be formatted with the given parameters.