SiteMapNode.ResourceKey Property

Definition

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

public string ResourceKey { get; set; }

Property Value

A string containing the resource key name.

Exceptions

The node is read-only.

Remarks

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.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also