获取具有指定键的特性。
命名空间: Microsoft.Windows.Design.PropertyEditing
程序集: Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)
语法
声明
ReadOnly Default Property Item ( _
key As String _
) As Attribute
Get
Attribute this[
string key
] { get; }
property Attribute^ default[String^ key] {
Attribute^ get (String^ key);
}
abstract Item : Attribute
JScript 不支持索引属性。
参数
- key
类型:System.String
要为其获取对应的 Attribute 的键。
属性值
类型:System.Attribute
与 key 相对应的 Attribute。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。