Export (0) Print
Expand All

SiteMapNode.ReadOnly Property

Gets or sets a value indicating whether the site map node can be modified.

Namespace: System.Web
Assembly: System.Web (in system.web.dll)

public bool ReadOnly { get; set; }
/** @property */
public boolean get_ReadOnly ()

/** @property */
public void set_ReadOnly (boolean value)

public function get ReadOnly () : boolean

public function set ReadOnly (value : boolean)

Not applicable.

Property Value

true if the site map node can be modified; otherwise, false.

A SiteMapNode object is modifiable by default.

NoteNote:

All nodes that are returned by the XmlSiteMapProvider are read-only, by default.

The Attributes, ChildNodes, Description, ParentNode, Roles, Title, and Url property mutators check the ReadOnly property before attempting to modify the property of a site map node. If the node is read-only when a mutator is called, the SiteMapNode object throws an InvalidOperationException exception.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft