SiteMapNode.ResourceKey Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

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

public string ResourceKey { get; set; }

Property Value

Type: System.String

A string containing the resource key name.

Exception Condition

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.

.NET Framework
Available since 2.0
Return to top