Share via


ReadOnlyDictionary<TKey, TValue> 类

继承层次结构

System.Object
  System.MarshalByRefObject
    Microsoft.SharePoint.BusinessData.Infrastructure.Collections.ReadOnlyDictionary<TKey, TValue>
      Microsoft.SharePoint.BusinessData.Infrastructure.Collections.ReadOnlyNamedDictionary<TValue>

命名空间:  Microsoft.SharePoint.BusinessData.Infrastructure.Collections
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class ReadOnlyDictionary(Of TKey, TValue) _
    Inherits MarshalByRefObject _
    Implements IReadOnlyDictionary(Of TKey, TValue), IReadOnlyCollection(Of KeyValuePair(Of TKey, TValue)),  _
    IEnumerable(Of KeyValuePair(Of TKey, TValue)), IEnumerable
用法
Dim instance As ReadOnlyDictionary(Of TKey, TValue)
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class ReadOnlyDictionary<TKey, TValue> : MarshalByRefObject, 
    IReadOnlyDictionary<TKey, TValue>, IReadOnlyCollection<KeyValuePair<TKey, TValue>>, 
    IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable

类型参数

  • TKey
  • TValue

线程安全性

该类型的任何公共 静态 (已共享 在 Visual Basic 中) 成员都是线程安全的。不保证任何实例成员都是线程安全的。

另请参阅

引用

ReadOnlyDictionary<TKey, TValue> 成员

Microsoft.SharePoint.BusinessData.Infrastructure.Collections 命名空间