SiteMapNode.ToString メソッド
アセンブリ: System.Web (system.web.dll 内)

Dim instance As SiteMapNode Dim returnValue As String returnValue = instance.ToString
この SiteMapNode の値の文字列形式。


ToString メソッドを SiteMapNode オブジェクトの Url プロパティおよび Title プロパティと比較する方法を次のコード例に示します。
<%@ Page Language="VB" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <SCRIPT runat="server"> Private Sub Page_Load(Sender As Object, E As EventArgs) ' Navigate the SiteMap built by the default SiteMapProvider. Response.Write(SiteMap.RootNode.ToString() & "<BR>") Response.Write(SiteMap.RootNode.Url & "<BR>") Response.Write(SiteMap.RootNode.Title & "<BR>") Dim sitemapnode As SiteMapNode For Each sitemapnode In SiteMap.RootNode.ChildNodes ' Iterate through the ChildNodes SiteMapNodesCollection ' maintained by the RootNode. Response.Write(sitemapnode.Url & "<BR>" ) Next Dim providers As IDictionaryEnumerator = SiteMap.Providers.GetEnumerator() While (providers.MoveNext()) Response.Write(providers.Current) Response.Write(" ") Response.Write("<BR>") End While End Sub ' Page_Load </SCRIPT>
<%@ Page Language="C#" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <SCRIPT runat="server"> private void Page_Load(object sender, System.EventArgs e) { // Navigate the SiteMap built by the default SiteMapProvider. Response.Write(SiteMap.RootNode.ToString() + "<BR>"); Response.Write(SiteMap.RootNode.Url + "<BR>"); Response.Write(SiteMap.RootNode.Title + "<BR>"); foreach (SiteMapNode sitemapnode in SiteMap.RootNode.ChildNodes) { // Iterate through the ChildNodes SiteMapNodesCollection // maintained by the RootNode. Response.Write(sitemapnode.Url + "<BR>" ); } IEnumerator providers = SiteMap.Providers.GetEnumerator(); while (providers.MoveNext()) { Response.Write(providers.Current); Response.Write(" "); Response.Write("<BR>"); } } </SCRIPT>

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
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からSiteMapNode.ToString メソッドを検索する場合は、下記のリンクをクリックしてください。

- SiteMapNode.ToString メソッドのページへのリンク