Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    LastAttributeIndex

    Gets the index of the last attribute in the fields collections.

    Declaration
    int LastAttributeIndex { get; }
    Property Value
    Type Description
    System.Int32
    View Source

    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 Source

    Get(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.

    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • LastAttributeIndex
      • Root
    • Methods
      • Get(Int32)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX