Class Navigation
The Navigation configurations of the Provisioning Template
Inheritance
System.Object
Navigation
Assembly: PnP.Framework.dll
Syntax
public class Navigation : BaseModel, IProvisioningTemplateDescendant
Constructors
Constructor for Navigation class
Declaration
Constructor for Navigation class
Declaration
public Navigation(GlobalNavigation globalNavigation = null, CurrentNavigation currentNavigation = null, StructuralNavigation searchNavigation = null)
Parameters
Properties
Declares whether the New Page ribbon command will automatically create a navigation item for the newly created page, optional attribute.
Declaration
public Boolean AddNewPagesToNavigation { get; set; }
Property Value
Declares whether the New Page ribbon command will automatically create a friendly URL for the newly created page, optional attribute.
Declaration
public Boolean CreateFriendlyUrlsForNewPages { get; set; }
Property Value
The Current Navigation settings for the Provisioning Template
Declaration
public CurrentNavigation CurrentNavigation { get; }
Property Value
Declares whether to enable site navigation audience targeting or not, optional attribute.
Declaration
public Boolean EnableAudienceTargeting { get; set; }
Property Value
Declares whether the tree view has to be enabled at the site level or not, optional attribute.
Declaration
public Boolean EnableTreeView { get; set; }
Property Value
The Global Navigation settings for the Provisioning Template
Declaration
public GlobalNavigation GlobalNavigation { get; }
Property Value
Defines the Search Navigation settings of the site
Declaration
public StructuralNavigation SearchNavigation { get; }
Property Value
Methods
Compares Navigation object based on GlobalNavigation and CurrentNavigation properties.
Declaration
public bool Equals(Navigation other)
Parameters
Returns
System.Boolean
true if the Navigation object is equal to the current object; otherwise, false.
|
Compares object with Navigation
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
Object that represents Navigation
|
Returns
System.Boolean
true if the current object is equal to the Navigation
|
Declaration
public override int GetHashCode()
Returns
System.Int32
Returns HashCode
|
Extension Methods