EntityConnectionStringBuilder.Item[String] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定與指定之索引鍵相關聯的值。 在 C# 中,這個屬性是索引子 (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
參數
- keyword
- String
要取得或設定之項目的索引鍵。
屬性值
與指定之索引鍵關聯的值。
例外狀況
關鍵字是 Null 參考, (Visual Basic 中的 Nothing) 。
嘗試加入不存在於可用索引鍵中的索引鍵。
連接字串中的無效值 (特別當必須是布林值或數值,但未提供這些值時)。