Interface INavigableSource
Represents a source of content that can be navigated via XPath.
Namespace: Umbraco.Cms.Core.Xml.XPath
Assembly: Umbraco.Core.dll
Syntax
public interface INavigableSource
Properties
View SourceLastAttributeIndex
Gets the index of the last attribute in the fields collections.
Declaration
int LastAttributeIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Root
Gets the content at the root of the source.
Declaration
INavigableContent Root { get; }
Property Value
Type | Description |
---|---|
INavigableContent |
Remarks
That content should have unique identifier -1
and should not be gettable,
ie Get(-1) should return null. Its ParentId
should be -1
. It should provide
values for the attribute fields.
Methods
View SourceGet(Int32)
Gets a content identified by its unique identifier.
Declaration
INavigableContent Get(int id)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | The unique identifier. |
Returns
Type | Description |
---|---|
INavigableContent | The content identified by the unique identifier, or null. |
Remarks
When id
is -1
(root content) implementations should return null
.