SiteMapNode.GetAllNodes メソッド
メモ : このメソッドは、.NET Framework version 2.0 で新しく追加されたものです。
呼び出し元ノードの子孫であるすべての SiteMapNode オブジェクトの読み取り専用コレクションを取得します。その際、呼び出し元ノードとの関係の遠近による制限はありません。
名前空間: System.Web
アセンブリ: 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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


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

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