PersonalizationDictionary.IDictionary.Item[Object] 属性

定义

获取或设置 Item[Object] 类的 PersonalizationDictionary 属性值。Gets or sets the Item[Object] property value for the PersonalizationDictionary class.

property System::Object ^ System::Collections::IDictionary::Item[System::Object ^] { System::Object ^ get(System::Object ^ key); void set(System::Object ^ key, System::Object ^ value); };
object System.Collections.IDictionary.Item[object key] { get; set; }
member this.System.Collections.IDictionary.Item(obj) : obj with get, set
 Property Item(key As Object) As Object Implements IDictionary.Item

参数

key
Object

一个 String,它标识个性化设置字典中特定的 PersonalizationEntry 对象。A String that identifies a particular PersonalizationEntry object in the personalization dictionary.

属性值

Object

一个其值与 key 相匹配的 PersonalizationEntry 对象。A PersonalizationEntry object whose value matches key.

实现

例外

key 不是 String 对象。key is not a String object.

注解

Item[]第一种 key 方法是确保成为 String 对象,如果是,它将调用 PersonalizationDictionary 类的自己的 Item[] 属性以返回 PersonalizationEntry 其密钥等于 key 当前字典的。The Item[] first ensures that key is a String object, and if so, it calls the PersonalizationDictionary class's own Item[] property to return the PersonalizationEntry whose key equals key in the current dictionary.

适用于

另请参阅