LinkedList.RemoveFirst メソッド
アセンブリ: System (system.dll 内)

Dim instance As LinkedList(Of T) instance.RemoveFirst

例外の種類 | 条件 |
---|---|
InvalidOperationException | LinkedList が空です。 |


RemoveFirst メソッドのコード例および出力を次に示します。このコード例では、文字列を含むノードのリンク リストの先頭に新しいノードを挿入し、リストを表示し、最初の要素にマークを付け、RemoveFirst メソッドを使って削除してから、リストの末尾に追加します。
このコード例および出力は、LinkedList クラスのトピックで取り上げている例の一部分です。
sentence.AddFirst("today") Display(sentence) Dim mark1 As LinkedListNode(Of String) = sentence.First sentence.RemoveFirst() sentence.AddLast(mark1) Display(sentence) <br /><span space="preserve">...</span><br />'today the fox jumped over the dog 'the fox jumped over the dog today

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


LinkedList ジェネリック クラス
LinkedList メンバ
System.Collections.Generic 名前空間
LinkedList.Remove メソッド
RemoveLast
LinkedList.Clear メソッド
LinkedList.AddFirst メソッド
Weblioに収録されているすべての辞書からLinkedList.RemoveFirst メソッドを検索する場合は、下記のリンクをクリックしてください。

- LinkedList.RemoveFirst メソッドのページへのリンク