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

Dim instance As SiteMapNode Dim returnValue As SiteMapNodeCollection returnValue = instance.GetAllNodes
現在のプロバイダのスコープ内に存在する SiteMapNode のすべての子孫を表す読み取り専用 SiteMapNodeCollection。


GetAllNodes メソッドを使用して RootNode のすべての子ノードを取得する方法を次のコード例に示します。
Dim siteNodes As SiteMapNodeCollection siteNodes = SiteMap.RootNode.GetAllNodes() If siteNodes.IsReadOnly Or siteNodes.IsFixedSize Then Response.Write("Collection is read-only or has fixed size.<BR>") ' Create a new, modifiable collection from the existing one. Dim modifiableCollection As SiteMapNodeCollection modifiableCollection = New SiteMapNodeCollection(siteNodes) ' The MoveNode example method moves a node from position one to ' the last position in the collection. MoveNode(modifiableCollection) Else MoveNode(siteNodes) End If
SiteMapNodeCollection siteNodes = SiteMap.RootNode.GetAllNodes(); if ( siteNodes.IsReadOnly || siteNodes.IsFixedSize ) { Response.Write("Collection is read-only or has fixed size.<BR>"); // Create a new, modifiable collection from the existing one. SiteMapNodeCollection modifiableCollection = new SiteMapNodeCollection(siteNodes); // The MoveNode example method moves a node from position one to // the last position in the collection. MoveNode(modifiableCollection); } else { MoveNode(siteNodes); }

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


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