SiteMapNode.ResourceKey Property

Note: This property is new in the .NET Framework version 2.0.

Gets or sets the resource key that is used to localize the SiteMapNode.

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

public:
property String^ ResourceKey {
	String^ get ();
	void set (String^ value);
}
/** @property */
public String get_ResourceKey ()

/** @property */
public void set_ResourceKey (String value)

public function get ResourceKey () : String

public function set ResourceKey (value : String)

Property Value

A string containing the resource key name.

Exception typeCondition

InvalidOperationException

The node is read-only.

Using the set accessor of the ResourceKey property when the ReadOnly property is true will result in an InvalidOperationException exception. To set the ResourceKey for a SiteMapNode object, use the SiteMapNode constructor.

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

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: