ToString Method

SiteMapNode.ToString Method ()


Converts the value of this instance of the SiteMapNode class to its equivalent string representation.

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

public override string ToString()

Return Value

Type: System.String

The string representation of the value of this SiteMapNode.

The ToString method returns the Title property of a SiteMapNode object.

The following code example demonstrates how to compare the ToString method to the Url and Title properties of a SiteMapNode object.

.NET Framework
Available since 2.0
Return to top
© 2015 Microsoft