Represents a property instance of specified type and value.
Namespace: Microsoft.Data.ConnectionUI
Assembly: Microsoft.Data.ConnectionUI (in Microsoft.Data.ConnectionUI.dll)
Syntax
'宣言
Default Property Item ( _
propertyName As String _
) As Object
'使用
Dim instance As IDataConnectionProperties
Dim propertyName As String
Dim value As Object
value = instance(propertyName)
instance(propertyName) = value
Object this[
string propertyName
] { get; set; }
property Object^ default[String^ propertyName] {
Object^ get (String^ propertyName);
void set (String^ propertyName, Object^ value);
}
JScript does not support indexed properties.
Parameters
propertyName
Type: System.StringName of the property.
Property Value
Type: System.Object
A property object instance of the specified name.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | The propertyName parameter is null. |
| InvalidCastException | When setting a property value, the specified value cannot be converted to the property type. |
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IDataConnectionProperties Interface