SiteMapNode.GetAllNodes メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > SiteMapNode.GetAllNodes メソッドの意味・解説 

SiteMapNode.GetAllNodes メソッド

メモ : このメソッドは、.NET Framework version 2.0新しく追加されたものです。

呼び出しノードの子孫であるすべての SiteMapNode オブジェクト読み取り専用コレクション取得しますその際呼び出しノードとの関係の遠近による制限はありません。

名前空間: System.Web
アセンブリ: System.Web (system.web.dll 内)
構文構文

Public Function GetAllNodes As
 SiteMapNodeCollection
Dim instance As SiteMapNode
Dim returnValue As SiteMapNodeCollection

returnValue = instance.GetAllNodes
public SiteMapNodeCollection GetAllNodes ()
public:
SiteMapNodeCollection^ GetAllNodes ()
public SiteMapNodeCollection GetAllNodes ()
public function GetAllNodes () : SiteMapNodeCollection

戻り値
現在のプロバイダスコープ内に存在する 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);
}

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SiteMapNode クラス
SiteMapNode メンバ
System.Web 名前空間
RootNode
SiteMapNodeCollection



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「SiteMapNode.GetAllNodes メソッド」の関連用語

SiteMapNode.GetAllNodes メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



SiteMapNode.GetAllNodes メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS