Class DynamicPublishedContent
The base dynamic model for views
Inheritance
System.Object
System.Dynamic.DynamicObject
Namespace:System.Dynamic.ExpandoObject
Assembly:umbraco.dll
Syntax
[Obsolete("The use of dynamics has been deprecated, use strongly typed syntax instead, dynamics will be removed in future versions")]
public class DynamicPublishedContent : DynamicObject, IDynamicMetaObjectProvider, IPublishedContent
Constructors
DynamicPublishedContent(IPublishedContent)
Declaration
public DynamicPublishedContent(IPublishedContent content)
Parameters
Properties
Children
Declaration
public DynamicPublishedContentList Children { get; }
Property Value
ChildrenAsList
Declaration
[Obsolete("Will be removing in future versions")]
public DynamicPublishedContentList ChildrenAsList { get; }
Property Value
ContentSet
Declaration
public IEnumerable<IPublishedContent> ContentSet { get; }
Property Value
ContentType
Declaration
public PublishedContentType ContentType { get; }
Property Value
CreateDate
Declaration
public DateTime CreateDate { get; }
Property Value
Type |
Description |
System.DateTime |
|
CreatorId
Declaration
public int CreatorId { get; }
Property Value
Type |
Description |
System.Int32 |
|
CreatorName
Declaration
public string CreatorName { get; }
Property Value
Type |
Description |
System.String |
|
DocumentTypeAlias
Declaration
public string DocumentTypeAlias { get; }
Property Value
Type |
Description |
System.String |
|
Id
Declaration
Property Value
Type |
Description |
System.Int32 |
|
Item[String]
Declaration
public object this[string propertyAlias] { get; }
Parameters
Type |
Name |
Description |
System.String |
propertyAlias |
|
Property Value
Type |
Description |
System.Object |
|
ItemType
Declaration
public PublishedItemType ItemType { get; }
Property Value
Level
Declaration
public int Level { get; }
Property Value
Type |
Description |
System.Int32 |
|
Name
Declaration
public string Name { get; }
Property Value
Type |
Description |
System.String |
|
Parent
Declaration
public DynamicPublishedContent Parent { get; }
Property Value
parentId
Declaration
[Obsolete("Will be removing in future versions")]
public int parentId { get; }
Property Value
Type |
Description |
System.Int32 |
|
Path
Declaration
public string Path { get; }
Property Value
Type |
Description |
System.String |
|
Properties
Declaration
public IEnumerable<IPublishedProperty> Properties { get; }
Property Value
PublishedContent
Declaration
protected IPublishedContent PublishedContent { get; }
Property Value
SortOrder
Declaration
public int SortOrder { get; }
Property Value
Type |
Description |
System.Int32 |
|
TemplateId
Declaration
public int TemplateId { get; }
Property Value
Type |
Description |
System.Int32 |
|
UpdateDate
Declaration
public DateTime UpdateDate { get; }
Property Value
Type |
Description |
System.DateTime |
|
Url
Declaration
public string Url { get; }
Property Value
Type |
Description |
System.String |
|
UrlName
Declaration
public string UrlName { get; }
Property Value
Type |
Description |
System.String |
|
Version
Declaration
public Guid Version { get; }
Property Value
Type |
Description |
System.Guid |
|
Visible
Declaration
public bool Visible { get; }
Property Value
Type |
Description |
System.Boolean |
|
WriterId
Declaration
public int WriterId { get; }
Property Value
Type |
Description |
System.Int32 |
|
WriterName
Declaration
public string WriterName { get; }
Property Value
Type |
Description |
System.String |
|
Methods
AncestorOrSelf()
Declaration
public DynamicPublishedContent AncestorOrSelf()
Returns
AncestorOrSelf(Func<IPublishedContent, Boolean>)
Declaration
public DynamicPublishedContent AncestorOrSelf(Func<IPublishedContent, bool> func)
Parameters
Returns
AncestorOrSelf(Int32)
Declaration
public DynamicPublishedContent AncestorOrSelf(int level)
Parameters
Type |
Name |
Description |
System.Int32 |
level |
|
Returns
AncestorOrSelf(String)
Declaration
public DynamicPublishedContent AncestorOrSelf(string contentTypeAlias)
Parameters
Type |
Name |
Description |
System.String |
contentTypeAlias |
|
Returns
Ancestors()
Declaration
public DynamicPublishedContentList Ancestors()
Returns
Ancestors(Func<IPublishedContent, Boolean>)
Declaration
public DynamicPublishedContentList Ancestors(Func<IPublishedContent, bool> func)
Parameters
Returns
Ancestors(Int32)
Declaration
public DynamicPublishedContentList Ancestors(int level)
Parameters
Type |
Name |
Description |
System.Int32 |
level |
|
Returns
Ancestors(String)
Declaration
public DynamicPublishedContentList Ancestors(string contentTypeAlias)
Parameters
Type |
Name |
Description |
System.String |
contentTypeAlias |
|
Returns
AncestorsOrSelf()
Declaration
public DynamicPublishedContentList AncestorsOrSelf()
Returns
AncestorsOrSelf(Func<IPublishedContent, Boolean>)
Declaration
public DynamicPublishedContentList AncestorsOrSelf(Func<IPublishedContent, bool> func)
Parameters
Returns
AncestorsOrSelf(Int32)
Declaration
public DynamicPublishedContentList AncestorsOrSelf(int level)
Parameters
Type |
Name |
Description |
System.Int32 |
level |
|
Returns
AncestorsOrSelf(String)
Declaration
public DynamicPublishedContentList AncestorsOrSelf(string contentTypeAlias)
Parameters
Type |
Name |
Description |
System.String |
contentTypeAlias |
|
Returns
AsDynamic()
Declaration
public dynamic AsDynamic()
Returns
Type |
Description |
System.Object |
|
AsDynamicOrNull()
Declaration
public dynamic AsDynamicOrNull()
Returns
Type |
Description |
System.Object |
|
Descendants()
Declaration
public DynamicPublishedContentList Descendants()
Returns
Descendants(Int32)
Declaration
public DynamicPublishedContentList Descendants(int level)
Parameters
Type |
Name |
Description |
System.Int32 |
level |
|
Returns
Descendants(String)
Declaration
public DynamicPublishedContentList Descendants(string contentTypeAlias)
Parameters
Type |
Name |
Description |
System.String |
contentTypeAlias |
|
Returns
DescendantsOrSelf()
Declaration
public DynamicPublishedContentList DescendantsOrSelf()
Returns
DescendantsOrSelf(Int32)
Declaration
public DynamicPublishedContentList DescendantsOrSelf(int level)
Parameters
Type |
Name |
Description |
System.Int32 |
level |
|
Returns
DescendantsOrSelf(String)
Declaration
public DynamicPublishedContentList DescendantsOrSelf(string contentTypeAlias)
Parameters
Type |
Name |
Description |
System.String |
contentTypeAlias |
|
Returns
Down()
Declaration
public DynamicPublishedContent Down()
Returns
Down(Int32)
Declaration
public DynamicPublishedContent Down(int number)
Parameters
Type |
Name |
Description |
System.Int32 |
number |
|
Returns
Down(String)
Declaration
public DynamicPublishedContent Down(string contentTypeAlias)
Parameters
Type |
Name |
Description |
System.String |
contentTypeAlias |
|
Returns
FirstChild()
Declaration
public DynamicPublishedContent FirstChild()
Returns
FirstChild(String)
Declaration
public DynamicPublishedContent FirstChild(string alias)
Parameters
Type |
Name |
Description |
System.String |
alias |
|
Returns
GetMemberMatchMethods()
Returns the member match methods in the correct order and is used in the TryGetMember method.
Declaration
protected virtual IEnumerable<Func<GetMemberBinder, Attempt<object>>> GetMemberMatchMethods()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.Func<System.Dynamic.GetMemberBinder, Attempt<System.Object>>> |
|
GetProperty(String)
Declaration
public IPublishedProperty GetProperty(string alias)
Parameters
Type |
Name |
Description |
System.String |
alias |
|
Returns
GetProperty(String, Boolean)
Declaration
public IPublishedProperty GetProperty(string alias, bool recurse)
Parameters
Type |
Name |
Description |
System.String |
alias |
|
System.Boolean |
recurse |
|
Returns
GetPropertyValue(String)
Declaration
public object GetPropertyValue(string alias)
Parameters
Type |
Name |
Description |
System.String |
alias |
|
Returns
Type |
Description |
System.Object |
|
GetPropertyValue(String, Boolean)
Declaration
public object GetPropertyValue(string alias, bool recurse)
Parameters
Type |
Name |
Description |
System.String |
alias |
|
System.Boolean |
recurse |
|
Returns
Type |
Description |
System.Object |
|
GetPropertyValue(String, Boolean, Object)
Declaration
public object GetPropertyValue(string alias, bool recurse, object defaultValue)
Parameters
Type |
Name |
Description |
System.String |
alias |
|
System.Boolean |
recurse |
|
System.Object |
defaultValue |
|
Returns
Type |
Description |
System.Object |
|
GetPropertyValue(String, Object)
Declaration
public object GetPropertyValue(string alias, object defaultValue)
Parameters
Type |
Name |
Description |
System.String |
alias |
|
System.Object |
defaultValue |
|
Returns
Type |
Description |
System.Object |
|
GetPropertyValue(String, String)
Declaration
public object GetPropertyValue(string alias, string defaultValue)
Parameters
Type |
Name |
Description |
System.String |
alias |
|
System.String |
defaultValue |
|
Returns
Type |
Description |
System.Object |
|
GetPropertyValue<T>(String)
Declaration
public T GetPropertyValue<T>(string alias)
Parameters
Type |
Name |
Description |
System.String |
alias |
|
Returns
Type Parameters
GetPropertyValue<T>(String, T)
Declaration
public T GetPropertyValue<T>(string alias, T defaultValue)
Parameters
Type |
Name |
Description |
System.String |
alias |
|
T |
defaultValue |
|
Returns
Type Parameters
GetPropertyValue<T>(String, Boolean)
Declaration
public T GetPropertyValue<T>(string alias, bool recurse)
Parameters
Type |
Name |
Description |
System.String |
alias |
|
System.Boolean |
recurse |
|
Returns
Type Parameters
GetPropertyValue<T>(String, Boolean, T)
Declaration
public T GetPropertyValue<T>(string alias, bool recurse, T defaultValue)
Parameters
Type |
Name |
Description |
System.String |
alias |
|
System.Boolean |
recurse |
|
T |
defaultValue |
|
Returns
Type Parameters
GetTemplateAlias()
Declaration
public string GetTemplateAlias()
Returns
Type |
Description |
System.String |
|
HasProperty(String)
Declaration
public bool HasProperty(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Type |
Description |
System.Boolean |
|
HasValue(String)
Declaration
public bool HasValue(string alias)
Parameters
Type |
Name |
Description |
System.String |
alias |
|
Returns
Type |
Description |
System.Boolean |
|
HasValue(String, Boolean)
Declaration
public bool HasValue(string alias, bool recursive)
Parameters
Type |
Name |
Description |
System.String |
alias |
|
System.Boolean |
recursive |
|
Returns
Type |
Description |
System.Boolean |
|
HasValue(String, Boolean, String)
Declaration
public IHtmlString HasValue(string alias, bool recursive, string valueIfTrue)
Parameters
Type |
Name |
Description |
System.String |
alias |
|
System.Boolean |
recursive |
|
System.String |
valueIfTrue |
|
Returns
Type |
Description |
System.Web.IHtmlString |
|
HasValue(String, Boolean, String, String)
Declaration
public IHtmlString HasValue(string alias, bool recursive, string valueIfTrue, string valueIfFalse)
Parameters
Type |
Name |
Description |
System.String |
alias |
|
System.Boolean |
recursive |
|
System.String |
valueIfTrue |
|
System.String |
valueIfFalse |
|
Returns
Type |
Description |
System.Web.IHtmlString |
|
HasValue(String, String)
Declaration
public IHtmlString HasValue(string alias, string valueIfTrue)
Parameters
Type |
Name |
Description |
System.String |
alias |
|
System.String |
valueIfTrue |
|
Returns
Type |
Description |
System.Web.IHtmlString |
|
HasValue(String, String, String)
Declaration
public IHtmlString HasValue(string alias, string valueIfTrue, string valueIfFalse)
Parameters
Type |
Name |
Description |
System.String |
alias |
|
System.String |
valueIfTrue |
|
System.String |
valueIfFalse |
|
Returns
Type |
Description |
System.Web.IHtmlString |
|
Index()
Declaration
Returns
Type |
Description |
System.Int32 |
|
IsAncestor(DynamicPublishedContent)
Declaration
public bool IsAncestor(DynamicPublishedContent other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
IsAncestor(DynamicPublishedContent, String)
Declaration
public HtmlString IsAncestor(DynamicPublishedContent other, string valueIfTrue)
Parameters
Returns
Type |
Description |
System.Web.HtmlString |
|
IsAncestor(DynamicPublishedContent, String, String)
Declaration
public HtmlString IsAncestor(DynamicPublishedContent other, string valueIfTrue, string valueIfFalse)
Parameters
Returns
Type |
Description |
System.Web.HtmlString |
|
IsAncestorOrSelf(DynamicPublishedContent)
Declaration
public bool IsAncestorOrSelf(DynamicPublishedContent other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
IsAncestorOrSelf(DynamicPublishedContent, String)
Declaration
public HtmlString IsAncestorOrSelf(DynamicPublishedContent other, string valueIfTrue)
Parameters
Returns
Type |
Description |
System.Web.HtmlString |
|
IsAncestorOrSelf(DynamicPublishedContent, String, String)
Declaration
public HtmlString IsAncestorOrSelf(DynamicPublishedContent other, string valueIfTrue, string valueIfFalse)
Parameters
Returns
Type |
Description |
System.Web.HtmlString |
|
IsDescendant(DynamicPublishedContent)
Declaration
public bool IsDescendant(DynamicPublishedContent other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
IsDescendant(DynamicPublishedContent, String)
Declaration
public HtmlString IsDescendant(DynamicPublishedContent other, string valueIfTrue)
Parameters
Returns
Type |
Description |
System.Web.HtmlString |
|
IsDescendant(DynamicPublishedContent, String, String)
Declaration
public HtmlString IsDescendant(DynamicPublishedContent other, string valueIfTrue, string valueIfFalse)
Parameters
Returns
Type |
Description |
System.Web.HtmlString |
|
IsDescendantOrSelf(DynamicPublishedContent)
Declaration
public bool IsDescendantOrSelf(DynamicPublishedContent other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
IsDescendantOrSelf(DynamicPublishedContent, String)
Declaration
public HtmlString IsDescendantOrSelf(DynamicPublishedContent other, string valueIfTrue)
Parameters
Returns
Type |
Description |
System.Web.HtmlString |
|
IsDescendantOrSelf(DynamicPublishedContent, String, String)
Declaration
public HtmlString IsDescendantOrSelf(DynamicPublishedContent other, string valueIfTrue, string valueIfFalse)
Parameters
Returns
Type |
Description |
System.Web.HtmlString |
|
IsDocumentType(String)
Declaration
public bool IsDocumentType(string docTypeAlias)
Parameters
Type |
Name |
Description |
System.String |
docTypeAlias |
|
Returns
Type |
Description |
System.Boolean |
|
IsEqual(DynamicPublishedContent)
Declaration
public bool IsEqual(DynamicPublishedContent other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
IsEqual(DynamicPublishedContent, String)
Declaration
public HtmlString IsEqual(DynamicPublishedContent other, string valueIfTrue)
Parameters
Returns
Type |
Description |
System.Web.HtmlString |
|
IsEqual(DynamicPublishedContent, String, String)
Declaration
public HtmlString IsEqual(DynamicPublishedContent other, string valueIfTrue, string valueIfFalse)
Parameters
Returns
Type |
Description |
System.Web.HtmlString |
|
IsEven()
Declaration
Returns
Type |
Description |
System.Boolean |
|
IsEven(String)
Declaration
public HtmlString IsEven(string valueIfTrue)
Parameters
Type |
Name |
Description |
System.String |
valueIfTrue |
|
Returns
Type |
Description |
System.Web.HtmlString |
|
IsEven(String, String)
Declaration
public HtmlString IsEven(string valueIfTrue, string valueIfFalse)
Parameters
Type |
Name |
Description |
System.String |
valueIfTrue |
|
System.String |
valueIfFalse |
|
Returns
Type |
Description |
System.Web.HtmlString |
|
IsFirst()
Declaration
Returns
Type |
Description |
System.Boolean |
|
IsFirst(String)
Declaration
public HtmlString IsFirst(string valueIfTrue)
Parameters
Type |
Name |
Description |
System.String |
valueIfTrue |
|
Returns
Type |
Description |
System.Web.HtmlString |
|
IsFirst(String, String)
Declaration
public HtmlString IsFirst(string valueIfTrue, string valueIfFalse)
Parameters
Type |
Name |
Description |
System.String |
valueIfTrue |
|
System.String |
valueIfFalse |
|
Returns
Type |
Description |
System.Web.HtmlString |
|
IsLast()
Declaration
Returns
Type |
Description |
System.Boolean |
|
IsLast(String)
Declaration
public HtmlString IsLast(string valueIfTrue)
Parameters
Type |
Name |
Description |
System.String |
valueIfTrue |
|
Returns
Type |
Description |
System.Web.HtmlString |
|
IsLast(String, String)
Declaration
public HtmlString IsLast(string valueIfTrue, string valueIfFalse)
Parameters
Type |
Name |
Description |
System.String |
valueIfTrue |
|
System.String |
valueIfFalse |
|
Returns
Type |
Description |
System.Web.HtmlString |
|
IsModZero(Int32)
Declaration
public bool IsModZero(int modulus)
Parameters
Type |
Name |
Description |
System.Int32 |
modulus |
|
Returns
Type |
Description |
System.Boolean |
|
IsModZero(Int32, String)
Declaration
public HtmlString IsModZero(int modulus, string valueIfTrue)
Parameters
Type |
Name |
Description |
System.Int32 |
modulus |
|
System.String |
valueIfTrue |
|
Returns
Type |
Description |
System.Web.HtmlString |
|
IsModZero(Int32, String, String)
Declaration
public HtmlString IsModZero(int modulus, string valueIfTrue, string valueIfFalse)
Parameters
Type |
Name |
Description |
System.Int32 |
modulus |
|
System.String |
valueIfTrue |
|
System.String |
valueIfFalse |
|
Returns
Type |
Description |
System.Web.HtmlString |
|
IsNotEqual(DynamicPublishedContent)
Declaration
public bool IsNotEqual(DynamicPublishedContent other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
IsNotEqual(DynamicPublishedContent, String)
Declaration
public HtmlString IsNotEqual(DynamicPublishedContent other, string valueIfTrue)
Parameters
Returns
Type |
Description |
System.Web.HtmlString |
|
IsNotEqual(DynamicPublishedContent, String, String)
Declaration
public HtmlString IsNotEqual(DynamicPublishedContent other, string valueIfTrue, string valueIfFalse)
Parameters
Returns
Type |
Description |
System.Web.HtmlString |
|
IsNotFirst()
Declaration
Returns
Type |
Description |
System.Boolean |
|
IsNotFirst(String)
Declaration
public HtmlString IsNotFirst(string valueIfTrue)
Parameters
Type |
Name |
Description |
System.String |
valueIfTrue |
|
Returns
Type |
Description |
System.Web.HtmlString |
|
IsNotFirst(String, String)
Declaration
public HtmlString IsNotFirst(string valueIfTrue, string valueIfFalse)
Parameters
Type |
Name |
Description |
System.String |
valueIfTrue |
|
System.String |
valueIfFalse |
|
Returns
Type |
Description |
System.Web.HtmlString |
|
IsNotLast()
Declaration
Returns
Type |
Description |
System.Boolean |
|
IsNotLast(String)
Declaration
public HtmlString IsNotLast(string valueIfTrue)
Parameters
Type |
Name |
Description |
System.String |
valueIfTrue |
|
Returns
Type |
Description |
System.Web.HtmlString |
|
IsNotLast(String, String)
Declaration
public HtmlString IsNotLast(string valueIfTrue, string valueIfFalse)
Parameters
Type |
Name |
Description |
System.String |
valueIfTrue |
|
System.String |
valueIfFalse |
|
Returns
Type |
Description |
System.Web.HtmlString |
|
IsNotModZero(Int32)
Declaration
public bool IsNotModZero(int modulus)
Parameters
Type |
Name |
Description |
System.Int32 |
modulus |
|
Returns
Type |
Description |
System.Boolean |
|
IsNotModZero(Int32, String)
Declaration
public HtmlString IsNotModZero(int modulus, string valueIfTrue)
Parameters
Type |
Name |
Description |
System.Int32 |
modulus |
|
System.String |
valueIfTrue |
|
Returns
Type |
Description |
System.Web.HtmlString |
|
IsNotModZero(Int32, String, String)
Declaration
public HtmlString IsNotModZero(int modulus, string valueIfTrue, string valueIfFalse)
Parameters
Type |
Name |
Description |
System.Int32 |
modulus |
|
System.String |
valueIfTrue |
|
System.String |
valueIfFalse |
|
Returns
Type |
Description |
System.Web.HtmlString |
|
IsNotPosition(Int32)
Declaration
public bool IsNotPosition(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
Type |
Description |
System.Boolean |
|
IsNotPosition(Int32, String)
Declaration
public HtmlString IsNotPosition(int index, string valueIfTrue)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
System.String |
valueIfTrue |
|
Returns
Type |
Description |
System.Web.HtmlString |
|
IsNotPosition(Int32, String, String)
Declaration
public HtmlString IsNotPosition(int index, string valueIfTrue, string valueIfFalse)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
System.String |
valueIfTrue |
|
System.String |
valueIfFalse |
|
Returns
Type |
Description |
System.Web.HtmlString |
|
IsNull(String)
Declaration
public bool IsNull(string alias)
Parameters
Type |
Name |
Description |
System.String |
alias |
|
Returns
Type |
Description |
System.Boolean |
|
IsNull(String, Boolean)
Declaration
public bool IsNull(string alias, bool recursive)
Parameters
Type |
Name |
Description |
System.String |
alias |
|
System.Boolean |
recursive |
|
Returns
Type |
Description |
System.Boolean |
|
IsOdd()
Declaration
Returns
Type |
Description |
System.Boolean |
|
IsOdd(String)
Declaration
public HtmlString IsOdd(string valueIfTrue)
Parameters
Type |
Name |
Description |
System.String |
valueIfTrue |
|
Returns
Type |
Description |
System.Web.HtmlString |
|
IsOdd(String, String)
Declaration
public HtmlString IsOdd(string valueIfTrue, string valueIfFalse)
Parameters
Type |
Name |
Description |
System.String |
valueIfTrue |
|
System.String |
valueIfFalse |
|
Returns
Type |
Description |
System.Web.HtmlString |
|
IsPosition(Int32)
Declaration
public bool IsPosition(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
Type |
Description |
System.Boolean |
|
IsPosition(Int32, String)
Declaration
public HtmlString IsPosition(int index, string valueIfTrue)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
System.String |
valueIfTrue |
|
Returns
Type |
Description |
System.Web.HtmlString |
|
IsPosition(Int32, String, String)
Declaration
public HtmlString IsPosition(int index, string valueIfTrue, string valueIfFalse)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
System.String |
valueIfTrue |
|
System.String |
valueIfFalse |
|
Returns
Type |
Description |
System.Web.HtmlString |
|
IsVisible()
Declaration
Returns
Type |
Description |
System.Boolean |
|
Next()
Declaration
public DynamicPublishedContent Next()
Returns
Next(Int32)
Declaration
public DynamicPublishedContent Next(int number)
Parameters
Type |
Name |
Description |
System.Int32 |
number |
|
Returns
Next(String)
Declaration
public DynamicPublishedContent Next(string contentTypeAlias)
Parameters
Type |
Name |
Description |
System.String |
contentTypeAlias |
|
Returns
Position()
Declaration
Returns
Type |
Description |
System.Int32 |
|
Previous()
Declaration
public DynamicPublishedContent Previous()
Returns
Previous(Int32)
Declaration
public DynamicPublishedContent Previous(int number)
Parameters
Type |
Name |
Description |
System.Int32 |
number |
|
Returns
Previous(String)
Declaration
public DynamicPublishedContent Previous(string contentTypeAlias)
Parameters
Type |
Name |
Description |
System.String |
contentTypeAlias |
|
Returns
Search(ISearchCriteria, BaseSearchProvider)
Declaration
public DynamicPublishedContentList Search(ISearchCriteria criteria, BaseSearchProvider searchProvider = null)
Parameters
Type |
Name |
Description |
Examine.SearchCriteria.ISearchCriteria |
criteria |
|
Examine.Providers.BaseSearchProvider |
searchProvider |
|
Returns
Search(String, Boolean, String)
Declaration
public DynamicPublishedContentList Search(string term, bool useWildCards = true, string searchProvider = null)
Parameters
Type |
Name |
Description |
System.String |
term |
|
System.Boolean |
useWildCards |
|
System.String |
searchProvider |
|
Returns
SearchChildren(String, Boolean, String)
Declaration
public DynamicPublishedContentList SearchChildren(string term, bool useWildCards = true, string searchProvider = null)
Parameters
Type |
Name |
Description |
System.String |
term |
|
System.Boolean |
useWildCards |
|
System.String |
searchProvider |
|
Returns
SearchDescendants(String, Boolean, String)
Declaration
public DynamicPublishedContentList SearchDescendants(string term, bool useWildCards = true, string searchProvider = null)
Parameters
Type |
Name |
Description |
System.String |
term |
|
System.Boolean |
useWildCards |
|
System.String |
searchProvider |
|
Returns
Sibling(Int32)
Declaration
public DynamicPublishedContent Sibling(int number)
Parameters
Type |
Name |
Description |
System.Int32 |
number |
|
Returns
Sibling(String)
Declaration
public DynamicPublishedContent Sibling(string contentTypeAlias)
Parameters
Type |
Name |
Description |
System.String |
contentTypeAlias |
|
Returns
Site()
Gets the 'site' content for this content.
Declaration
public DynamicPublishedContent Site()
Returns
TryGetChildrenByAlias(GetMemberBinder)
Attempts to return the children by the document type's alias (for example: CurrentPage.NewsItems where NewsItem is the
document type alias)
Declaration
protected virtual Attempt<object> TryGetChildrenByAlias(GetMemberBinder binder)
Parameters
Type |
Name |
Description |
System.Dynamic.GetMemberBinder |
binder |
|
Returns
Type |
Description |
Attempt<System.Object> |
|
TryGetCustomMember(GetMemberBinder)
Attempts to return a custom member (generally based on a string match)
Declaration
protected virtual Attempt<object> TryGetCustomMember(GetMemberBinder binder)
Parameters
Type |
Name |
Description |
System.Dynamic.GetMemberBinder |
binder |
|
Returns
Type |
Description |
Attempt<System.Object> |
|
TryGetDocumentProperty(GetMemberBinder)
Attempts to return a member based on the reflected document property
Declaration
protected virtual Attempt<object> TryGetDocumentProperty(GetMemberBinder binder)
Parameters
Type |
Name |
Description |
System.Dynamic.GetMemberBinder |
binder |
|
Returns
Type |
Description |
Attempt<System.Object> |
|
TryGetMember(GetMemberBinder, out Object)
Try to return an object based on the dynamic member accessor
Declaration
public override bool TryGetMember(GetMemberBinder binder, out object result)
Parameters
Type |
Name |
Description |
System.Dynamic.GetMemberBinder |
binder |
|
System.Object |
result |
|
Returns
Type |
Description |
System.Boolean |
|
TryGetUserProperty(GetMemberBinder)
Attempts to return a member based on a user defined umbraco property
Declaration
protected virtual Attempt<object> TryGetUserProperty(GetMemberBinder binder)
Parameters
Type |
Name |
Description |
System.Dynamic.GetMemberBinder |
binder |
|
Returns
Type |
Description |
Attempt<System.Object> |
|
TryInvokeMember(InvokeMemberBinder, Object[], out Object)
Attempts to call a method on the dynamic object
Declaration
public override bool TryInvokeMember(InvokeMemberBinder binder, object[] args, out object result)
Parameters
Type |
Name |
Description |
System.Dynamic.InvokeMemberBinder |
binder |
|
System.Object[] |
args |
|
System.Object |
result |
|
Returns
Type |
Description |
System.Boolean |
|
Up()
Declaration
public DynamicPublishedContent Up()
Returns
Up(Int32)
Declaration
public DynamicPublishedContent Up(int number)
Parameters
Type |
Name |
Description |
System.Int32 |
number |
|
Returns
Up(String)
Declaration
public DynamicPublishedContent Up(string contentTypeAlias)
Parameters
Type |
Name |
Description |
System.String |
contentTypeAlias |
|
Returns
Where(String)
Declaration
public bool Where(string predicate)
Parameters
Type |
Name |
Description |
System.String |
predicate |
|
Returns
Type |
Description |
System.Boolean |
|
Where(String, String)
Declaration
public HtmlString Where(string predicate, string valueIfTrue)
Parameters
Type |
Name |
Description |
System.String |
predicate |
|
System.String |
valueIfTrue |
|
Returns
Type |
Description |
System.Web.HtmlString |
|
Where(String, String, String)
Declaration
public HtmlString Where(string predicate, string valueIfTrue, string valueIfFalse)
Parameters
Type |
Name |
Description |
System.String |
predicate |
|
System.String |
valueIfTrue |
|
System.String |
valueIfFalse |
|
Returns
Type |
Description |
System.Web.HtmlString |
|
Explicit Interface Implementations
IPublishedContent.Children
Declaration
IEnumerable<IPublishedContent> IPublishedContent.Children { get; }
Returns
IPublishedContent.CreateDate
Declaration
DateTime IPublishedContent.CreateDate { get; }
Returns
Type |
Description |
System.DateTime |
|
IPublishedContent.CreatorId
Declaration
int IPublishedContent.CreatorId { get; }
Returns
Type |
Description |
System.Int32 |
|
IPublishedContent.CreatorName
Declaration
string IPublishedContent.CreatorName { get; }
Returns
Type |
Description |
System.String |
|
IPublishedContent.DocumentTypeAlias
Declaration
string IPublishedContent.DocumentTypeAlias { get; }
Returns
Type |
Description |
System.String |
|
IPublishedContent.DocumentTypeId
Declaration
int IPublishedContent.DocumentTypeId { get; }
Returns
Type |
Description |
System.Int32 |
|
IPublishedContent.GetIndex()
Declaration
int IPublishedContent.GetIndex()
Returns
Type |
Description |
System.Int32 |
|
IPublishedContent.GetProperty(String)
Declaration
IPublishedProperty IPublishedContent.GetProperty(string alias)
Parameters
Type |
Name |
Description |
System.String |
alias |
|
Returns
IPublishedContent.Id
Declaration
int IPublishedContent.Id { get; }
Returns
Type |
Description |
System.Int32 |
|
IPublishedContent.IsDraft
Declaration
bool IPublishedContent.IsDraft { get; }
Returns
Type |
Description |
System.Boolean |
|
IPublishedContent.Level
Declaration
int IPublishedContent.Level { get; }
Returns
Type |
Description |
System.Int32 |
|
IPublishedContent.Name
Declaration
string IPublishedContent.Name { get; }
Returns
Type |
Description |
System.String |
|
IPublishedContent.Parent
Declaration
IPublishedContent IPublishedContent.Parent { get; }
Returns
IPublishedContent.Path
Declaration
string IPublishedContent.Path { get; }
Returns
Type |
Description |
System.String |
|
IPublishedContent.Properties
Declaration
ICollection<IPublishedProperty> IPublishedContent.Properties { get; }
Returns
IPublishedContent.SortOrder
Declaration
int IPublishedContent.SortOrder { get; }
Returns
Type |
Description |
System.Int32 |
|
IPublishedContent.TemplateId
Declaration
int IPublishedContent.TemplateId { get; }
Returns
Type |
Description |
System.Int32 |
|
IPublishedContent.UpdateDate
Declaration
DateTime IPublishedContent.UpdateDate { get; }
Returns
Type |
Description |
System.DateTime |
|
IPublishedContent.UrlName
Declaration
string IPublishedContent.UrlName { get; }
Returns
Type |
Description |
System.String |
|
IPublishedContent.Version
Declaration
Guid IPublishedContent.Version { get; }
Returns
Type |
Description |
System.Guid |
|
IPublishedContent.WriterId
Declaration
int IPublishedContent.WriterId { get; }
Returns
Type |
Description |
System.Int32 |
|
IPublishedContent.WriterName
Declaration
string IPublishedContent.WriterName { get; }
Returns
Type |
Description |
System.String |
|