Class ContentModelMethods
Inheritance
System.Object
ContentModelMethods
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public static class ContentModelMethods : Object
Fields
ContentTypeRepository
Declaration
public static Injected<IContentTypeRepository> ContentTypeRepository
Field Value
Methods
ConvertCategoryToString(CategoryList)
Declaration
public static CategoryList ConvertCategoryToString(CategoryList category)
Parameters
Returns
ConvertContentReference(ContentReference)
Declaration
public static ContentReference ConvertContentReference(ContentReference contentReference)
Parameters
Returns
ConvertConvertReferenceWithDefault(ContentReference)
Declaration
public static ContentReference ConvertConvertReferenceWithDefault(ContentReference contentReference)
Parameters
Returns
ConvertCultureToString(CultureInfo)
Declaration
public static string ConvertCultureToString(CultureInfo culture)
Parameters
Type |
Name |
Description |
System.Globalization.CultureInfo |
culture |
|
Returns
Type |
Description |
System.String |
|
ConvertGuidToString(Guid)
Declaration
public static string ConvertGuidToString(Guid guid)
Parameters
Type |
Name |
Description |
System.Guid |
guid |
|
Returns
Type |
Description |
System.String |
|
ConvertIntToLinkType(Object)
Declaration
public static PageShortcutType ConvertIntToLinkType(object linkType)
Parameters
Type |
Name |
Description |
System.Object |
linkType |
|
Returns
ConvertIntToPageType(Object)
Declaration
public static PageType ConvertIntToPageType(object pageTypeIdObject)
Parameters
Type |
Name |
Description |
System.Object |
pageTypeIdObject |
|
Returns
ConvertIntToVersionStatus(Object)
Declaration
public static VersionStatus ConvertIntToVersionStatus(object status)
Parameters
Type |
Name |
Description |
System.Object |
status |
|
Returns
ConvertObjectToDateTime(Object)
Declaration
public static DateTime ConvertObjectToDateTime(object data)
Parameters
Type |
Name |
Description |
System.Object |
data |
|
Returns
Type |
Description |
System.DateTime |
|
ConvertPageTypeToInt(PageType)
Declaration
public static object ConvertPageTypeToInt(PageType pageType)
Parameters
Returns
Type |
Description |
System.Object |
|
ConvertStringToCulture(String)
Declaration
public static CultureInfo ConvertStringToCulture(string cultureName)
Parameters
Type |
Name |
Description |
System.String |
cultureName |
|
Returns
Type |
Description |
System.Globalization.CultureInfo |
|
ConvertStringToDefaultEmpty(String)
Declaration
public static string ConvertStringToDefaultEmpty(string data)
Parameters
Type |
Name |
Description |
System.String |
data |
|
Returns
Type |
Description |
System.String |
|
ConvertStringToGuid(String)
Declaration
public static Guid ConvertStringToGuid(string guidStr)
Parameters
Type |
Name |
Description |
System.String |
guidStr |
|
Returns
Type |
Description |
System.Guid |
|
GetValueOrDefault<T>(PropertyDataCollection, String, Boolean)
Declaration
public static T GetValueOrDefault<T>(PropertyDataCollection propertyDataCollection, string propertyName, bool defaultOnIsNull)
Parameters
Type |
Name |
Description |
PropertyDataCollection |
propertyDataCollection |
|
System.String |
propertyName |
|
System.Boolean |
defaultOnIsNull |
|
Returns
Type Parameters
HasLazyValue(PropertyDataCollection, String)
Declaration
public static bool HasLazyValue(PropertyDataCollection propertyDataCollection, string propertyName)
Parameters
Returns
Type |
Description |
System.Boolean |
|
IsReadonlyAndDoesNotFetchData(PageData)
Declaration
public static bool IsReadonlyAndDoesNotFetchData(PageData page)
Parameters
Returns
Type |
Description |
System.Boolean |
|