EntityConnectionStringBuilder.Item[String] Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the value associated with the specified key. In C#, this property is the indexer.
public override object this[string keyword] { get; set; }
member this.Item(string) : obj with get, set
Default Public Overrides Property Item(keyword As String) As Object
Parameters
- keyword
- String
The key of the item to get or set.
Property Value
The value associated with the specified key.
Exceptions
keyword is a null reference (Nothing in Visual Basic).
Tried to add a key that does not exist in the available keys.
Invalid value in the connection string (specifically, a Boolean or numeric value was expected but not supplied).
Applies to
Entity Framework