Class ContentExtensions
Inheritance
System.Object
Namespace:System.Dynamic.ExpandoObject
Assembly:umbraco.dll
Syntax
public static class ContentExtensions
Methods
GetCulture(IContent, Uri)
Gets the culture that would be selected to render a specified content, within the context of a specified current request.
Declaration
public static CultureInfo GetCulture(this IContent content, Uri current = null)
Parameters
Type | Name | Description |
---|---|---|
IContent | content | The content. |
System.Uri | current | The request Uri. |
Returns
Type | Description |
---|---|
System.Globalization.CultureInfo | The culture that would be selected to render the content. |