Partager via


DataConnectionProperties.Item Property

Gets or sets a value for a specified property of the DDEX provider.

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
Public Default Property Item ( _
    key As String _
) As Object
public Object this[
    string key
] { get; set; }
public:
virtual property Object^ default[String^ key] {
    Object^ get (String^ key) sealed;
    void set (String^ key, Object^ value) sealed;
}
abstract Item : 
        key:string -> Object with get, set 
override Item : 
        key:string -> Object with get, set
JScript does not support indexed properties.

Parameters

Property Value

Type: System.Object
The value associated with the specified property name: DBNull.Value if the property is known but is not set (and has no default), or nulla null reference (Nothing in Visual Basic) if the property is not known.

Implements

IDictionary<TKey, TValue>.Item

Exceptions

Exception Condition
ArgumentNullException

The propertyName parameter is nulla null reference (Nothing in Visual Basic).

InvalidCastException

The specified value of a property value cannot be converted to the property type.

.NET Framework Security

See Also

Reference

DataConnectionProperties Class

Microsoft.VisualStudio.Data.Framework Namespace