Class IContentExtensions

Inheritance
System.Object
IContentExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Cms.Shell
Assembly: EPiServer.Cms.Shell.UI.dll
Version: 11.20.7
Syntax
public static class IContentExtensions

Methods

DownloadUrl(IContent)

Declaration
[Obsolete("Will remain at least until jan 2017.")]
public static string DownloadUrl(this IContent content)
Parameters
Type Name Description
IContent content
Returns
Type Description
System.String

EditablePreviewUrl(IContent)

Declaration
[Obsolete("Will remain at least until jan 2017.")]
public static string EditablePreviewUrl(this IContent content)
Parameters
Type Name Description
IContent content
Returns
Type Description
System.String

EditablePreviewUrl(IContent, UrlResolver, TemplateResolver)

Declaration
public static string EditablePreviewUrl(this IContent content, UrlResolver urlResolver, TemplateResolver templateResolver)
Parameters
Type Name Description
IContent content
UrlResolver urlResolver
TemplateResolver templateResolver
Returns
Type Description
System.String

GetTypeIdentifier(IContent)

Declaration
[Obsolete("Will remain at least until jan 2017.")]
public static string GetTypeIdentifier(this IContent content)
Parameters
Type Name Description
IContent content
Returns
Type Description
System.String

GetTypeIdentifier(IContent, UIDescriptorRegistry)

Declaration
public static string GetTypeIdentifier(this IContent content, UIDescriptorRegistry uiDescriptorRegistry)
Parameters
Type Name Description
IContent content
UIDescriptorRegistry uiDescriptorRegistry
Returns
Type Description
System.String

GetUri(IContent)

Declaration
public static Uri GetUri(this IContent content)
Parameters
Type Name Description
IContent content
Returns
Type Description
System.Uri

GetUri(IContent, Boolean)

Declaration
public static Uri GetUri(this IContent content, bool createVersionUnspecificLink)
Parameters
Type Name Description
IContent content
System.Boolean createVersionUnspecificLink
Returns
Type Description
System.Uri

HasTranslationAccess(IContent)

Declaration
[Obsolete("Will remain at least until jan 2017.")]
public static bool HasTranslationAccess(this IContent content)
Parameters
Type Name Description
IContent content
Returns
Type Description
System.Boolean

HasTranslationAccess(IContent, LanguageResolver, ILanguageBranchRepository)

Declaration
public static bool HasTranslationAccess(this IContent content, LanguageResolver languageResolver, ILanguageBranchRepository languageBranchRepository)
Parameters
Type Name Description
IContent content
LanguageResolver languageResolver
ILanguageBranchRepository languageBranchRepository
Returns
Type Description
System.Boolean

HasTranslationAccess(IContent, CultureInfo, IPrincipal)

Declaration
[Obsolete("Will remain at least until jan 2017.")]
public static bool HasTranslationAccess(this IContent content, CultureInfo culture, IPrincipal principal)
Parameters
Type Name Description
IContent content
System.Globalization.CultureInfo culture
System.Security.Principal.IPrincipal principal
Returns
Type Description
System.Boolean

HasTranslationAccess(IContent, CultureInfo, IPrincipal, ILanguageBranchRepository)

Declaration
public static bool HasTranslationAccess(this IContent content, CultureInfo culture, IPrincipal principal, ILanguageBranchRepository languageBranchRepository)
Parameters
Type Name Description
IContent content
System.Globalization.CultureInfo culture
System.Security.Principal.IPrincipal principal
ILanguageBranchRepository languageBranchRepository
Returns
Type Description
System.Boolean

IsInCulture(IContent, CultureInfo)

Declaration
public static bool IsInCulture(this IContent content, CultureInfo culture)
Parameters
Type Name Description
IContent content
System.Globalization.CultureInfo culture
Returns
Type Description
System.Boolean

IsMasterLanguageBranch(IContent)

Declaration
public static bool IsMasterLanguageBranch(this IContent content)
Parameters
Type Name Description
IContent content
Returns
Type Description
System.Boolean

IsPublished(IContent)

Declaration
public static bool IsPublished(this IContent content)
Parameters
Type Name Description
IContent content
Returns
Type Description
System.Boolean

LanguageBranch(IContent)

Declaration
public static string LanguageBranch(this IContent content)
Parameters
Type Name Description
IContent content
Returns
Type Description
System.String

PreviewUrl(IContent)

Declaration
[Obsolete("Will remain at least until jan 2017.")]
public static string PreviewUrl(this IContent content)
Parameters
Type Name Description
IContent content
Returns
Type Description
System.String

PreviewUrl(IContent, UrlResolver, TemplateResolver)

Declaration
public static string PreviewUrl(this IContent content, UrlResolver urlResolver, TemplateResolver templateResolver)
Parameters
Type Name Description
IContent content
UrlResolver urlResolver
TemplateResolver templateResolver
Returns
Type Description
System.String

PublicUrl(IContent)

Declaration
[Obsolete("Will remain at least until jan 2017.")]
public static string PublicUrl(this IContent content)
Parameters
Type Name Description
IContent content
Returns
Type Description
System.String

PublicUrl(IContent, UrlResolver)

Declaration
public static string PublicUrl(this IContent content, UrlResolver urlResolver)
Parameters
Type Name Description
IContent content
UrlResolver urlResolver
Returns
Type Description
System.String

PublicUrl(IContent, String, UrlResolver)

Declaration
public static string PublicUrl(this IContent content, string language, UrlResolver urlResolver)
Parameters
Type Name Description
IContent content
System.String language
UrlResolver urlResolver
Returns
Type Description
System.String

PublicUrl(IContent, String, RouteValueDictionary, UrlResolver)

Declaration
public static string PublicUrl(this IContent content, string language, RouteValueDictionary routeValues, UrlResolver urlResolver)
Parameters
Type Name Description
IContent content
System.String language
System.Web.Routing.RouteValueDictionary routeValues
UrlResolver urlResolver
Returns
Type Description
System.String

SetPropertyValue(IContent, String, Object)

Declaration
public static void SetPropertyValue(this IContent content, string propertyName, object value)
Parameters
Type Name Description
IContent content
System.String propertyName
System.Object value

ThumbnailUrl(IContent)

Declaration
[Obsolete("Will remain at least until jan 2017.")]
public static string ThumbnailUrl(this IContent content)
Parameters
Type Name Description
IContent content
Returns
Type Description
System.String

ThumbnailUrl(IContent, UrlResolver, TemplateResolver)

Declaration
public static string ThumbnailUrl(this IContent content, UrlResolver urlResolver, TemplateResolver templateResolver)
Parameters
Type Name Description
IContent content
UrlResolver urlResolver
TemplateResolver templateResolver
Returns
Type Description
System.String