Clase ReadOnlyDictionary<TKey, TValue>
Representa una colección de sólo lectura de las claves y valores.
Jerarquía de la herencia
System.Object
Microsoft.SharePoint.Taxonomy.Generic.ReadOnlyDictionary<TKey, TValue>
Espacio de nombres: Microsoft.SharePoint.Taxonomy.Generic
Ensamblado: Microsoft.SharePoint.Taxonomy (en Microsoft.SharePoint.Taxonomy.dll)
Sintaxis
'Declaración
<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
'Uso
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
Parámetros de tipo
- TKey
El tipo de las claves en el diccionario
- TValue
El tipo de los valores en el diccionario
Seguridad para subprocesos
Los miembros static (Shared en Visual Basic) públicos de este tipo son seguros para subprocesos. No se garantiza que los miembros de instancias sean seguros para los subprocesos.