OrderedDictionaryとは? わかりやすく解説

OrderedDictionary クラス

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

キーインデックス基づいて並べ替えられた、キー/値ペアコレクション表します

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

<SerializableAttribute> _
Public Class OrderedDictionary
    Implements IOrderedDictionary, IDictionary, ICollection, IEnumerable,
 _
    ISerializable, IDeserializationCallback
Dim instance As OrderedDictionary
[SerializableAttribute] 
public class OrderedDictionary : IOrderedDictionary,
 IDictionary, ICollection, 
    IEnumerable, ISerializable, IDeserializationCallback
[SerializableAttribute] 
public ref class OrderedDictionary : IOrderedDictionary,
 IDictionary, ICollection, 
    IEnumerable, ISerializable, IDeserializationCallback
/** @attribute SerializableAttribute() */ 
public class OrderedDictionary implements IOrderedDictionary,
 IDictionary, 
    ICollection, IEnumerable, ISerializable, IDeserializationCallback
SerializableAttribute 
public class OrderedDictionary implements IOrderedDictionary,
 IDictionary, 
    ICollection, IEnumerable, ISerializable, IDeserializationCallback
解説解説

各要素は、DictionaryEntry オブジェクト格納されているキー/値ペアです。キーには null 参照 (Visual Basic では Nothing) は使用できませんが、値は null でもかまいません

C# 言語foreach ステートメント (Visual Basic では For Each) は、コレクション内の各要素の型を必要としますOrderedDictionary コレクション各要素キー/値ペアであるため、要素の型は、キーの型や値の型にはなりません。その代わり要素の型は DictionaryEntryなりますC# および Visual Basic構文次のコード示します

foreach (DictionaryEntry de in myListDictionary)
 {...}
For Each de As DictionaryEntry
 In myListDictionary
  ...
Next de

foreach ステートメントは、列挙子のラッパーです。これは、コレクションからの読み取りだけを許可しコレクションへの書き込み防ぎます

使用例使用例

OrderedDictionary コレクション作成データ読み込み、および変更を行う方法と、OrderedDictionary内容表示する 2 つ方法 (Keys プロパティValues プロパティ使用する方法、および GetEnumerator メソッド使用して列挙子を作成する方法) のコード例次に示します

' The following code example enumerates the elements of a OrderedDictionary.
Imports System
Imports System.Collections
Imports System.Collections.Specialized

Public Class OrderedDictionarySample

    Public Shared Sub Main()

        ' Creates and initializes a OrderedDictionary.
        Dim myOrderedDictionary As New
 OrderedDictionary()
        myOrderedDictionary.Add("testKey1", "testValue1")
        myOrderedDictionary.Add("testKey2", "testValue2")
        myOrderedDictionary.Add("keyToDelete", "valueToDelete")
        myOrderedDictionary.Add("testKey3", "testValue3")

        Dim keyCollection As ICollection =
 myOrderedDictionary.Keys
        Dim valueCollection As ICollection
 = myOrderedDictionary.Values

        ' Display the contents Imports the key and value collections
        DisplayContents( _
            keyCollection, valueCollection, myOrderedDictionary.Count)

        ' Modifying the OrderedDictionary
        If Not myOrderedDictionary.IsReadOnly
 Then

            ' Insert a new key to the beginning of the OrderedDictionary
            myOrderedDictionary.Insert(0, "insertedKey1",
 "insertedValue1")

            ' Modify the value of the entry with the key "testKey2"
            myOrderedDictionary("testKey2") = "modifiedValue"

            ' Remove the last entry from the OrderedDictionary: "testKey3"
            myOrderedDictionary.RemoveAt(myOrderedDictionary.Count - 1)

            ' Remove the "keyToDelete" entry, if it exists
            If (myOrderedDictionary.Contains("keyToDelete"))
 Then
                myOrderedDictionary.Remove("keyToDelete")
            End If
        End If

        Console.WriteLine( _
            "{0}Displaying the entries of a modified OrderedDictionary.",
 _
            Environment.NewLine)
        DisplayContents( _
            keyCollection, valueCollection, myOrderedDictionary.Count)

        ' Clear the OrderedDictionary and add new values
        myOrderedDictionary.Clear()
        myOrderedDictionary.Add("newKey1", "newValue1")
        myOrderedDictionary.Add("newKey2", "newValue2")
        myOrderedDictionary.Add("newKey3", "newValue3")

        ' Display the contents of the "new" Dictionary Imports
 an enumerator
        Dim myEnumerator As IDictionaryEnumerator
 = _
            myOrderedDictionary.GetEnumerator()

        Console.WriteLine( _
            "{0}Displaying the entries of a 'new'
 OrderedDictionary.", _
            Environment.NewLine)

        DisplayEnumerator(myEnumerator)

        Console.ReadLine()
    End Sub

    ' Displays the contents of the OrderedDictionary from its keys and
 values
    Public Shared Sub DisplayContents(
 _
        ByVal keyCollection As ICollection,
 _
        ByVal valueCollection As ICollection,
 ByVal dictionarySize As Integer)

        Dim myKeys(dictionarySize) As [String]
        Dim myValues(dictionarySize) As [String]
        keyCollection.CopyTo(myKeys, 0)
        valueCollection.CopyTo(myValues, 0)

        ' Displays the contents of the OrderedDictionary
        Console.WriteLine("   INDEX KEY                      
 VALUE")
        Dim i As Integer
        For i = 0 To dictionarySize - 1
            Console.WriteLine("   {0,-5} {1,-25} {2}",
 _
                 i, myKeys(i), myValues(i))
        Next i
        Console.WriteLine()
    End Sub

    ' Displays the contents of the OrderedDictionary using its enumerator
    Public Shared Sub DisplayEnumerator(
 _
        ByVal myEnumerator As IDictionaryEnumerator)

        Console.WriteLine("   KEY                       VALUE")
        While myEnumerator.MoveNext()
            Console.WriteLine("   {0,-25} {1}", _
                myEnumerator.Key, myEnumerator.Value)
        End While
    End Sub
End Class

'This code produces the following output.
'
'   INDEX KEY                       VALUE
'0:              testKey1(testValue1)
'1:              testKey2(testValue2)
'2:              keyToDelete(valueToDelete)
'3:              testKey3(testValue3)
'
'
'Displaying the entries of a modified OrderedDictionary.
'   INDEX KEY                       VALUE
'0:              insertedKey1(insertedValue1)
'1:              testKey1(testValue1)
'2:              testKey2(modifiedValue)
'
'
'Displaying the entries of a "new" OrderedDictionary.
'                KEY(VALUE)
'                newKey1(newValue1)
'                newKey2(newValue2)
'                newKey3(newValue3)
// The following code example enumerates the elements of a OrderedDictionary.
using System;
using System.Collections;
using System.Collections.Specialized;

public class OrderedDictionarySample
{
    public static void Main()
    {

        // Creates and initializes a OrderedDictionary.
        OrderedDictionary myOrderedDictionary = new OrderedDictionary();
        myOrderedDictionary.Add("testKey1", "testValue1");
        myOrderedDictionary.Add("testKey2", "testValue2");
        myOrderedDictionary.Add("keyToDelete", "valueToDelete");
        myOrderedDictionary.Add("testKey3", "testValue3");

        ICollection keyCollection = myOrderedDictionary.Keys;
        ICollection valueCollection = myOrderedDictionary.Values;

        // Display the contents using the key and value collections
        DisplayContents(keyCollection, valueCollection, myOrderedDictionary.Count);

        // Modifying the OrderedDictionary
        if (!myOrderedDictionary.IsReadOnly)
        {
            // Insert a new key to the beginning of the OrderedDictionary
            myOrderedDictionary.Insert(0, "insertedKey1", "insertedValue1");

            // Modify the value of the entry with the key "testKey2"
            myOrderedDictionary["testKey2"] = "modifiedValue";

            // Remove the last entry from the OrderedDictionary: "testKey3"
            myOrderedDictionary.RemoveAt(myOrderedDictionary.Count - 1);

            // Remove the "keyToDelete" entry, if it exists
            if (myOrderedDictionary.Contains("keyToDelete"))
            {
                myOrderedDictionary.Remove("keyToDelete");
            }
        }

        Console.WriteLine(
            "{0}Displaying the entries of a modified OrderedDictionary."
,
            Environment.NewLine);
        DisplayContents(keyCollection, valueCollection, myOrderedDictionary.Count);

        // Clear the OrderedDictionary and add new values
        myOrderedDictionary.Clear();
        myOrderedDictionary.Add("newKey1", "newValue1");
        myOrderedDictionary.Add("newKey2", "newValue2");
        myOrderedDictionary.Add("newKey3", "newValue3");

        // Display the contents of the "new" Dictionary using
 an enumerator
        IDictionaryEnumerator myEnumerator =
            myOrderedDictionary.GetEnumerator();

        Console.WriteLine(
            "{0}Displaying the entries of a \"new\"
 OrderedDictionary.",
            Environment.NewLine);

        DisplayEnumerator(myEnumerator);

        Console.ReadLine();
    }

    // Displays the contents of the OrderedDictionary from its keys
 and values
    public static void DisplayContents(
        ICollection keyCollection, ICollection valueCollection, int
 dictionarySize)
    {
        String[] myKeys = new String[dictionarySize];
        String[] myValues = new String[dictionarySize];
        keyCollection.CopyTo(myKeys, 0);
        valueCollection.CopyTo(myValues, 0);

        // Displays the contents of the OrderedDictionary
        Console.WriteLine("   INDEX KEY                       VALUE");
        for (int i = 0; i < dictionarySize;
 i++)
        {
            Console.WriteLine("   {0,-5} {1,-25} {2}",
                i, myKeys[i], myValues[i]);
        }
        Console.WriteLine();
    }

    // Displays the contents of the OrderedDictionary using its enumerator
    public static void DisplayEnumerator(IDictionaryEnumerator
 myEnumerator)
    {
        Console.WriteLine("   KEY                       VALUE");
        while (myEnumerator.MoveNext())
        {
            Console.WriteLine("   {0,-25} {1}",
                myEnumerator.Key, myEnumerator.Value);
        }
    }
}

/*
This code produces the following output.

   INDEX KEY                       VALUE
   0     testKey1                  testValue1
   1     testKey2                  testValue2
   2     keyToDelete               valueToDelete
   3     testKey3                  testValue3


Displaying the entries of a modified OrderedDictionary.
   INDEX KEY                       VALUE
   0     insertedKey1              insertedValue1
   1     testKey1                  testValue1
   2     testKey2                  modifiedValue


Displaying the entries of a "new" OrderedDictionary.
   KEY                       VALUE
   newKey1                   newValue1
   newKey2                   newValue2
   newKey3                   newValue3

*/
継承階層継承階層
System.Object
  System.Collections.Specialized.OrderedDictionary
     System.Web.Configuration.AdapterDictionary
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
OrderedDictionary メンバ
System.Collections.Specialized 名前空間

OrderedDictionary コンストラクタ ()

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

OrderedDictionary クラス新しインスタンス初期化します。

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

Dim instance As New OrderedDictionary
public OrderedDictionary ()
public:
OrderedDictionary ()
public OrderedDictionary ()
public function OrderedDictionary ()
解説解説

比較演算子2 つキー等しかどうか判断しますOrderedDictionary コレクション内のすべてのキー一意である必要があります既定比較演算子は、キーの Object.Equals の実装です。

使用例使用例

OrderedDictionary コレクション作成してデータ読み込むコード例次に示します。このコードは、OrderedDictionary参照できるコード例一部です。

' Creates and initializes a OrderedDictionary.
Dim myOrderedDictionary As New
 OrderedDictionary()
myOrderedDictionary.Add("testKey1", "testValue1")
myOrderedDictionary.Add("testKey2", "testValue2")
myOrderedDictionary.Add("keyToDelete", "valueToDelete")
myOrderedDictionary.Add("testKey3", "testValue3")

Dim keyCollection As ICollection = myOrderedDictionary.Keys
Dim valueCollection As ICollection = myOrderedDictionary.Values

' Display the contents Imports the key and value collections
DisplayContents( _
    keyCollection, valueCollection, myOrderedDictionary.Count)
// Creates and initializes a OrderedDictionary.
OrderedDictionary myOrderedDictionary = new OrderedDictionary();
myOrderedDictionary.Add("testKey1", "testValue1");
myOrderedDictionary.Add("testKey2", "testValue2");
myOrderedDictionary.Add("keyToDelete", "valueToDelete");
myOrderedDictionary.Add("testKey3", "testValue3");

ICollection keyCollection = myOrderedDictionary.Keys;
ICollection valueCollection = myOrderedDictionary.Values;

// Display the contents using the key and value collections
DisplayContents(keyCollection, valueCollection, myOrderedDictionary.Count);
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
OrderedDictionary クラス
OrderedDictionary メンバ
System.Collections.Specialized 名前空間

OrderedDictionary コンストラクタ (IEqualityComparer)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

比較演算子指定して、OrderedDictionary クラス新しインスタンス初期化します。

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

Public Sub New ( _
    comparer As IEqualityComparer _
)
Dim comparer As IEqualityComparer

Dim instance As New OrderedDictionary(comparer)
public OrderedDictionary (
    IEqualityComparer comparer
)
public:
OrderedDictionary (
    IEqualityComparer^ comparer
)
public OrderedDictionary (
    IEqualityComparer comparer
)
public function OrderedDictionary (
    comparer : IEqualityComparer
)

パラメータ

comparer

2 つキー等しかどうか判断するために使用する IComparer。

または

キーの Object.Equals の実装である既定比較演算子使用する場合null 参照 (Visual Basic では Nothing)。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
OrderedDictionary クラス
OrderedDictionary メンバ
System.Collections.Specialized 名前空間

OrderedDictionary コンストラクタ (Int32)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

指定した初期容量使用してOrderedDictionary クラス新しインスタンス初期化します。

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

public OrderedDictionary (
    int capacity
)
public:
OrderedDictionary (
    int capacity
)
public OrderedDictionary (
    int capacity
)
public function OrderedDictionary (
    capacity : int
)

パラメータ

capacity

OrderedDictionary コレクション格納できる要素数の初期値

解説解説

比較演算子2 つキー等しかどうか判断しますOrderedDictionary コレクション内のすべてのキー一意である必要があります既定比較演算子は、キーの Object.Equals の実装です。

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

OrderedDictionary コンストラクタ (Int32, IEqualityComparer)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

指定した初期容量および比較演算子使用してOrderedDictionary クラス新しインスタンス初期化します。

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

Public Sub New ( _
    capacity As Integer, _
    comparer As IEqualityComparer _
)
Dim capacity As Integer
Dim comparer As IEqualityComparer

Dim instance As New OrderedDictionary(capacity,
 comparer)
public OrderedDictionary (
    int capacity,
    IEqualityComparer comparer
)
public:
OrderedDictionary (
    int capacity, 
    IEqualityComparer^ comparer
)
public OrderedDictionary (
    int capacity, 
    IEqualityComparer comparer
)
public function OrderedDictionary (
    capacity : int, 
    comparer : IEqualityComparer
)

パラメータ

capacity

OrderedDictionary コレクション格納できる要素数の初期値

comparer

2 つキー等しかどうか判断するために使用する IComparer。

または

キーの Object.Equals の実装である既定比較演算子使用する場合null 参照 (Visual Basic では Nothing)。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
OrderedDictionary クラス
OrderedDictionary メンバ
System.Collections.Specialized 名前空間

OrderedDictionary コンストラクタ (SerializationInfo, StreamingContext)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

指定した SerializationInfo オブジェクトStreamingContext オブジェクト使用してシリアル化できる、OrderedDictionary クラス新しインスタンス初期化します。

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

Protected Sub New ( _
    info As SerializationInfo, _
    context As StreamingContext _
)
Dim info As SerializationInfo
Dim context As StreamingContext

Dim instance As New OrderedDictionary(info,
 context)
protected OrderedDictionary (
    SerializationInfo info,
    StreamingContext context
)
protected:
OrderedDictionary (
    SerializationInfo^ info, 
    StreamingContext context
)
protected OrderedDictionary (
    SerializationInfo info, 
    StreamingContext context
)
protected function OrderedDictionary (
    info : SerializationInfo, 
    context : StreamingContext
)

パラメータ

info

OrderedDictionary コレクションシリアル化するために必要な情報格納している SerializationInfo オブジェクト

context

OrderedDictionary関連付けられているシリアル化ストリームソースおよびデスティネーション格納している StreamingContext オブジェクト

解説解説

比較演算子2 つキー等しかどうか判断しますOrderedDictionary コレクション内のすべてのキー一意である必要があります既定比較演算子は、キーの Object.Equals の実装です。

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

OrderedDictionary コンストラクタ

OrderedDictionary クラス新しインスタンス初期化します。
オーバーロードの一覧オーバーロードの一覧

名前 説明
OrderedDictionary () OrderedDictionary クラス新しインスタンス初期化します。
OrderedDictionary (IEqualityComparer) 比較演算子指定してOrderedDictionary クラス新しインスタンス初期化します。
OrderedDictionary (Int32) 指定した初期容量使用してOrderedDictionary クラス新しインスタンス初期化します。
OrderedDictionary (Int32, IEqualityComparer) 指定した初期容量および比較演算子使用してOrderedDictionary クラス新しインスタンス初期化します。
OrderedDictionary (SerializationInfo, StreamingContext) 指定した SerializationInfo オブジェクトと StreamingContext オブジェクト使用してシリアル化できる、OrderedDictionary クラス新しインスタンス初期化します。
参照参照

関連項目

OrderedDictionary クラス
OrderedDictionary メンバ
System.Collections.Specialized 名前空間

OrderedDictionary プロパティ


パブリック プロパティパブリック プロパティ

  名前 説明
パブリック プロパティ Count OrderedDictionary コレクション格納されているキー/値ペアの数を取得します
パブリック プロパティ IsReadOnly OrderedDictionary コレクション読み取り専用かどうかを示す値を取得します
パブリック プロパティ Item オーバーロードされます指定した値を取得または設定します
パブリック プロパティ Keys OrderedDictionary コレクションキー保持している ICollection オブジェクト取得します
パブリック プロパティ Values OrderedDictionary コレクションの値を保持している ICollection オブジェクト取得します
明示的インターフェイスの実装明示的インターフェイス実装
  名前 説明
インターフェイスの明示的な実装 System.Collections.ICollection.IsSynchronized OrderedDictionary オブジェクトへのアクセス同期されている (スレッド セーフである) かどうかを示す値を取得します
インターフェイスの明示的な実装 System.Collections.ICollection.SyncRoot OrderedDictionary オブジェクトへのアクセス同期するために使用できるオブジェクト取得します
インターフェイスの明示的な実装 System.Collections.IDictionary.IsFixedSize OrderedDictionary固定サイズかどうかを示す値を取得します
参照参照

関連項目

OrderedDictionary クラス
System.Collections.Specialized 名前空間

OrderedDictionary メソッド


パブリック メソッドパブリック メソッド

( プロテクト メソッド参照)
  名前 説明
パブリック メソッド Add 指定したキーおよび値を持つエントリを、使用できる最小インデックスを持つ OrderedDictionary コレクション追加します
パブリック メソッド AsReadOnly 現在の OrderedDictionary コレクション読み取り専用コピー返します
パブリック メソッド Clear OrderedDictionary コレクションからすべての要素削除します
パブリック メソッド Contains OrderedDictionary コレクション特定のキー格納されているかどうか判断します
パブリック メソッド CopyTo 1 次元Array オブジェクト指定したインデックスOrderedDictionary要素コピーします
パブリック メソッド Equals  オーバーロードされます2 つObject インスタンス等しかどうか判断します。 ( Object から継承されます。)
パブリック メソッド GetEnumerator OrderedDictionary コレクション反復処理する IDictionaryEnumerator オブジェクト返します
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用適してます。 ( Object から継承されます。)
パブリック メソッド GetObjectData ISerializable インターフェイス実装し、OrderedDictionary コレクションシリアル化するために必要なデータ返します
パブリック メソッド GetType  現在のインスタンスType取得します。 ( Object から継承されます。)
パブリック メソッド Insert OrderedDictionary コレクション指定したインデックス位置に、指定したキーと値を持つ新しいエントリを挿入します
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 ( Object から継承されます。)
パブリック メソッド Remove 指定したキーを持つエントリを OrderedDictionary コレクションから削除します
パブリック メソッド RemoveAt 指定したインデックス位置にあるエントリを OrderedDictionary コレクションから削除します
パブリック メソッド ToString  現在の Object を表す String返します。 ( Object から継承されます。)
プロテクト メソッドプロテクト メソッド
明示的インターフェイスの実装明示的インターフェイス実装
  名前 説明
インターフェイスの明示的な実装 System.Collections.IEnumerable.GetEnumerator OrderedDictionary コレクション反復処理する IDictionaryEnumerator オブジェクト返します
インターフェイスの明示的な実装 System.Runtime.Serialization.IDeserializationCallback.OnDeserialization ISerializable インターフェイス実装し、逆シリアル化完了したときに逆シリアル化イベントによってコールバックされます
参照参照

関連項目

OrderedDictionary クラス
System.Collections.Specialized 名前空間

OrderedDictionary メンバ

キーインデックス基づいて並べ替えられた、キー/値ペアコレクション表します

OrderedDictionary データ型公開されるメンバを以下の表に示します


パブリック コンストラクタパブリック コンストラクタ
プロテクト コンストラクタプロテクト コンストラクタ
  名前 説明
プロテクト メソッド OrderedDictionary オーバーロードされますOrderedDictionary クラス新しインスタンス初期化します。
パブリック プロパティパブリック プロパティ
  名前 説明
パブリック プロパティ Count OrderedDictionary コレクション格納されているキー/値ペアの数を取得します
パブリック プロパティ IsReadOnly OrderedDictionary コレクション読み取り専用かどうかを示す値を取得します
パブリック プロパティ Item オーバーロードされます指定した値を取得または設定します
パブリック プロパティ Keys OrderedDictionary コレクションキー保持している ICollection オブジェクト取得します
パブリック プロパティ Values OrderedDictionary コレクションの値を保持している ICollection オブジェクト取得します
パブリック メソッドパブリック メソッド
( プロテクト メソッド参照)
  名前 説明
パブリック メソッド Add 指定したキーおよび値を持つエントリを、使用できる最小インデックスを持つ OrderedDictionary コレクション追加します
パブリック メソッド AsReadOnly 現在の OrderedDictionary コレクション読み取り専用コピー返します
パブリック メソッド Clear OrderedDictionary コレクションからすべての要素削除します
パブリック メソッド Contains OrderedDictionary コレクション特定のキー格納されているかどうか判断します
パブリック メソッド CopyTo 1 次元Array オブジェクト指定したインデックスOrderedDictionary要素コピーします
パブリック メソッド Equals  オーバーロードされます2 つObject インスタンス等しかどうか判断します。 (Object から継承されます。)
パブリック メソッド GetEnumerator OrderedDictionary コレクション反復処理する IDictionaryEnumerator オブジェクト返します
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用適してます。 (Object から継承されます。)
パブリック メソッド GetObjectData ISerializable インターフェイス実装し、OrderedDictionary コレクションシリアル化するために必要なデータ返します
パブリック メソッド GetType  現在のインスタンスType取得します。 (Object から継承されます。)
パブリック メソッド Insert OrderedDictionary コレクション指定したインデックス位置に、指定したキーと値を持つ新しいエントリを挿入します
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 (Object から継承されます。)
パブリック メソッド Remove 指定したキーを持つエントリを OrderedDictionary コレクションから削除します
パブリック メソッド RemoveAt 指定したインデックス位置にあるエントリを OrderedDictionary コレクションから削除します
パブリック メソッド ToString  現在の Object を表す String返します。 (Object から継承されます。)
プロテクト メソッドプロテクト メソッド
明示的インターフェイスの実装明示的インターフェイス実装
  名前 説明
インターフェイスの明示的な実装 System.Collections.IEnumerable.GetEnumerator OrderedDictionary コレクション反復処理する IDictionaryEnumerator オブジェクト返します
インターフェイスの明示的な実装 System.Runtime.Serialization.IDeserializationCallback.OnDeserialization ISerializable インターフェイス実装し、逆シリアル化完了したときに逆シリアル化イベントによってコールバックされます
インターフェイスの明示的な実装 System.Collections.ICollection.IsSynchronized OrderedDictionary オブジェクトへのアクセス同期されている (スレッド セーフである) かどうかを示す値を取得します
インターフェイスの明示的な実装 System.Collections.ICollection.SyncRoot OrderedDictionary オブジェクトへのアクセス同期するために使用できるオブジェクト取得します
インターフェイスの明示的な実装 System.Collections.IDictionary.IsFixedSize OrderedDictionary固定サイズかどうかを示す値を取得します
参照参照

関連項目

OrderedDictionary クラス
System.Collections.Specialized 名前空間


このページでは「.NET Framework クラス ライブラリ リファレンス」からOrderedDictionaryを検索した結果を表示しています。
Weblioに収録されているすべての辞書からOrderedDictionaryを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からOrderedDictionaryを検索

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

辞書ショートカット

すべての辞書の索引

「OrderedDictionary」の関連用語

OrderedDictionaryのお隣キーワード
検索ランキング

   

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



OrderedDictionaryのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS