共用方式為


ReadOnlyDictionary<TKey, TValue> Members

Include Protected Members
Include Inherited Members

Contains methods and properties that handle read-only dictionary collections.

The ReadOnlyDictionary<TKey, TValue> type exposes the following members.

Constructors

  Name Description
Public method ReadOnlyDictionary<TKey, TValue>() Initializes a new instance of the class.
Public method ReadOnlyDictionary<TKey, TValue>(Int32) Initializes a new instance of the class with a specified size.

Top

Properties

  Name Description
Public property Count Gets the count of the items in the read-only dictionary.
Public property Item[Int32] Gets the key/value pair stored at a specific index.
Public property Item[TKey] Gets the item that exists at a specified key.
Public property Keys Gets the collection of keys in the dictionary.
Public property Values Gets the collection of values in the dictionary.

Top

Methods

  Name Description
Public method Contains Determines whether a specified item is stored at a specified key in the dictionary.
Public method ContainsKey Determines whether the dictionary contains a specific key.
Public method CopyTo Copies items from a read-only dictionary to an array at a specific index.
Public method CreateObjRef (Inherited from MarshalByRefObject.)
Public method GetEnumerator Creates an enumerator to iterate through this collection.
Public method GetLifetimeService (Inherited from MarshalByRefObject.)
Public method InitializeLifetimeService (Inherited from MarshalByRefObject.)
Protected method MemberwiseClone (Inherited from MarshalByRefObject.)
Public method ToString (Inherited from Object.)
Public method TryGetValue Gets the value associated with the specified key.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator Creates an enumerator to iterate through this collection.

Top

See Also

Reference

ReadOnlyDictionary<TKey, TValue> Class

Microsoft.SharePoint.BusinessData.Infrastructure.Collections.Client Namespace