ReadOnlyDictionary<TKey, TValue> - Classe
Représente une collection en lecture seule des clés et des valeurs.
Hiérarchie d’héritage
System.Object
Microsoft.SharePoint.Taxonomy.Generic.ReadOnlyDictionary<TKey, TValue>
Espace de noms : Microsoft.SharePoint.Taxonomy.Generic
Assembly : Microsoft.SharePoint.Taxonomy (dans Microsoft.SharePoint.Taxonomy.dll)
Syntaxe
'Déclaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public NotInheritable Class ReadOnlyDictionary(Of TKey, TValue) _
Implements IDictionary(Of TKey, TValue), ICollection(Of KeyValuePair(Of TKey, TValue)), _
IEnumerable(Of KeyValuePair(Of TKey, TValue)), IDictionary, _
ICollection, IEnumerable
'Utilisation
Dim instance As ReadOnlyDictionary(Of TKey, TValue)
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public sealed class ReadOnlyDictionary<TKey, TValue> : IDictionary<TKey, TValue>,
ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>,
IDictionary, ICollection, IEnumerable
Paramètres de type
- TKey
Le type des clés dans le dictionnaire
- TValue
Le type des valeurs dans le dictionnaire
Cohérence de thread
Tous les membres statique (Partagé dans Visual Basic)s publics de ce type sont thread-safe. Cela n’est pas garanti pour les membres d’instance.