DataConnectionProperties.Item Property
Retrieves or sets a value for a specified property on the DDEX Provider.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'Declaration
Public Overridable Default Property Item ( _
propertyName As String _
) As Object
public virtual Object this[
string propertyName
] { get; set; }
public:
virtual property Object^ default[String^ propertyName] {
Object^ get (String^ propertyName);
void set (String^ propertyName, Object^ value);
}
abstract Item :
propertyName:string -> Object with get, set
override Item :
propertyName:string -> Object with get, set
JScript does not support indexed properties.
Parameters
propertyName
Type: System.StringThe name of a connection property.
Property Value
Type: System.Object
Returns the value associated with the specified property name. Alternatively, returns DBNull.Value if the property is known but is not set (and has no default), or returns nulla null reference (Nothing in Visual Basic) if the property is not known.
Implements
IDataConnectionProperties.Item
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. |
.NET Framework Security
- 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.