SiteMapNodeBuilder
Definition
Constructors
Initializes a new instance of the SiteMapNodeBuilder class.
public SiteMapNodeBuilder(SiteMapNode siteMapNode)
The site map node.
Methods
Sets the action to which the date should navigate
public SiteMapNodeBuilder Action(RouteValueDictionary routeValues)
The route values of the Action method.
Returns:Sets the action, controller and route values.
Expression based controllerAction.
public virtual SiteMapNodeBuilder Action<TController>(Expression<Action<TController>> controllerAction) where TController : Controller
The action.
Returns:Sets the attributes
public virtual SiteMapNodeBuilder Attributes(IDictionary<string, object> value)
The value.
Returns:Sets the attributes
public virtual SiteMapNodeBuilder Attributes(object value)
The value.
Returns:Executes the provided delegate to configure the child node.
public virtual SiteMapNodeBuilder ChildNodes(Action<SiteMapNodeFactory> addActions)
The add actions.
Returns:Marks an item that it would be included in the search engine index.
public virtual SiteMapNodeBuilder IncludeInSearchEngineIndex(bool value)
if set to true [value].
Sets the Lasts the modified date..
public virtual SiteMapNodeBuilder LastModifiedAt(DateTime value)
The value.
Returns:Sets the route.
public virtual SiteMapNodeBuilder Route(string routeName, RouteValueDictionary routeValues)
Name of the route.
routeValuesRouteValueDictionaryThe route values.
Returns:Sets the route.
public virtual SiteMapNodeBuilder Route(string routeName)
Name of the route.
Returns:Sets the title.
Sets the url.
Sets the visibility.
public virtual SiteMapNodeBuilder Visible(bool value)
if set to true [value].
Operators
Performs an implicit conversion from SiteMapNodeBuilder to SiteMapNode.
public static implicit operator SiteMapNode(SiteMapNodeBuilder builder)
The builder.
Returns:The result of the conversion.