ContentService.GetAncestors Method

Namespace:
Weavy.Core.Services
Assembly:
Weavy.Core.dll

Overloads

GetAncestors(Int32, Boolean) Get ancestors of the specified content item, starting with the closest parent and ending with the root.
GetAncestors(Int32, Boolean) Get ancestors of the specified content item, starting with the closest parent and ending with the root.

GetAncestors(Int32, Boolean)

Get ancestors of the specified content item, starting with the closest parent and ending with the root.

public static IEnumerable GetAncestors(int id, bool filter = true)

Parameters

id
System.Int32
filter
System.Boolean

Returns

System.Collections.Generic.IEnumerable{Weavy.Core.Models.Content}

Returns a list of objects implementing the interface.

GetAncestors(Int32, Boolean)

Get ancestors of the specified content item, starting with the closest parent and ending with the root.

public static IEnumerable GetAncestors(int id, bool filter = true)
    where T : Content

Parameters

id
System.Int32
filter
System.Boolean

Returns

System.Collections.Generic.IEnumerable{Weavy.Core.Models.Content}

Returns a list of content items of type T.