Search Results for

    Show / Hide Table of Contents

    Class NavigationNode

    Defines a Navigation Node for the Structural Navigation of a site

    Inheritance
    System.Object
    BaseModel
    NavigationNode
    Inherited Members
    BaseModel.ParentTemplate
    Namespace: PnP.Framework.Provisioning.Model
    Assembly: PnP.Framework.dll
    Syntax
    public class NavigationNode : BaseModel, IProvisioningTemplateDescendant

    Constructors

    NavigationNode()

    Constructor for NavigationNode class

    Declaration
    public NavigationNode()

    Properties

    IsExternal

    Defines whether the Navigation Node for the Structural Navigation targets an External resource

    Declaration
    public Boolean IsExternal { get; set; }
    Property Value
    Boolean

    NavigationNodes

    A collection of navigation nodes children of the current NavigatioNode

    Declaration
    public NavigationNodeCollection NavigationNodes { get; }
    Property Value
    NavigationNodeCollection

    Title

    Defines the Title of a Navigation Node

    Declaration
    public String Title { get; set; }
    Property Value
    String

    Url

    Defines the Url of a Navigation Node

    Declaration
    public String Url { get; set; }
    Property Value
    String

    Methods

    Equals(NavigationNode)

    Compares NavigationNode object based on isExternal, NavigationNodes, Title and Url properties.

    Declaration
    public bool Equals(NavigationNode other)
    Parameters
    NavigationNode other

    NavigationNode object

    Returns
    System.Boolean

    true if the NavigationNode object is equal to the current object; otherwise, false.

    Equals(Object)

    Compares object with NavigationNode

    Declaration
    public override bool Equals(object obj)
    Parameters
    System.Object obj

    Object that represents NavigationNode

    Returns
    System.Boolean

    true if the current object is equal to the NavigationNode

    GetHashCode()

    Gets the hash code

    Declaration
    public override int GetHashCode()
    Returns
    System.Int32

    Returns HashCode

    Extension Methods

    ValidationExtensions.ValidateNotNullOrEmpty<T>(T, String)
    ObjectExtensions.Set<TObject, T>(TObject, Expression<Func<TObject, T>>, T, Boolean, Boolean)
    ObjectExtensions.GetPublicInstancePropertyValue(Object, String)
    ObjectExtensions.GetPublicInstanceProperty(Object, String)
    ObjectExtensions.SetPublicInstancePropertyValue(Object, String, Object)
    Extensions.ToByteArray(Object)
    Back to top PnP Framework
    Generated by DocFX with Material UI
    spacer