表示指定的类型和值属性的实例。
命名空间: Microsoft.Data.ConnectionUI
程序集: Microsoft.Data.ConnectionUI(在 Microsoft.Data.ConnectionUI.dll 中)
语法
声明
Default Property Item ( _
propertyName As String _
) As Object
Object this[
string propertyName
] { get; set; }
property Object^ default[String^ propertyName] {
Object^ get (String^ propertyName);
void set (String^ propertyName, Object^ value);
}
abstract Item : Object with get, set
JScript 不支持索引属性。
参数
- propertyName
类型:System.String
属性的名称。
属性值
类型:System.Object
指定名称的属性对象实例。
异常
异常 | 条件 |
---|---|
ArgumentNullException | propertyName 参数为 null。 |
InvalidCastException | 在设置属性值时,此指定值无法转换为属性类型。 |
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。