LazyDictionary.Item 属性

命名空间: Microsoft.WindowsAzure.Common.Internals
程序集: Microsoft.WindowsAzure.Common(在 Microsoft.WindowsAzure.Common.dll 中)

使用

用法
Dim instance As LazyDictionary(Of TKey, TValue)
Dim key As TKey
Dim value As TValue

value = instance(key)

instance(key) = value

语法

声明
Public Default Property Item ( _
    key As TKey _
) As TValue
public TValue this [
    TKey key
] { get; set; }
public:
virtual property TValue default [TKey] {
    TValue get (TKey key) sealed;
    void set (TKey key, TValue value) sealed;
}
/** @property */
public final TValue get_Item (TKey key)

/** @property */
public final void set_Item (TKey key, TValue value)

线程安全

此类型的所有公开静态(在 Visual Basic 中为共享)成员均为线程安全型成员。但不保证所有实例成员都是线程安全的。

平台

开发平台

Windows Vista、Windows 7 和 Windows Server 2008

目标平台

另请参阅

参考

LazyDictionary 类
LazyDictionary 成员
Microsoft.WindowsAzure.Common.Internals 命名空间