This documentation is archived and is not being maintained.

SiteMapNode.GetImplicitResourceString Method

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

Gets a localized string based on the attribute name and ResourceKey property that is specified by the SiteMapProvider by which the SiteMapNode is tracked.

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

protected string GetImplicitResourceString (
	string attributeName
protected String GetImplicitResourceString (
	String attributeName
protected function GetImplicitResourceString (
	attributeName : String
) : String



The SiteMapNode attribute to localize.

Return Value

A string representing the localized attribute. The default is a null reference (Nothing in Visual Basic).

Exception typeCondition


attributeName is a null reference (Nothing in Visual Basic).

The GetImplicitResourceString method is invoked in the get accessor of the Title property, the Description property, and any custom attributes that are defined in the Attributes property. The SiteMapProvider provider by which the SiteMapNode object is tracked must have its EnableLocalization property set to true for the GetImplicitResourceString method to be called. If the EnableLocalization is set to false, localization is not performed and the GetImplicitResourceString method is never called.

If the GetImplicitResourceString method returns a string that is not empty, this becomes the value of the Title, Description, or custom attribute property.

The GetImplicitResourceString method uses the value of the ResourceKey property to localize the attribute. If the ResourceKey is not specified, the GetImplicitResourceString returns a null reference (Nothing in Visual Basic).

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