OracleConnectionStringBuilder.Keys プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > OracleConnectionStringBuilder.Keys プロパティの意味・解説 

OracleConnectionStringBuilder.Keys プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

OracleConnectionStringBuilder 内のキー格納している ICollection を取得します

名前空間: System.Data.OracleClient
アセンブリ: System.Data.OracleClient (system.data.oracleclient.dll 内)
構文構文

Public Overrides ReadOnly
 Property Keys As ICollection
Dim instance As OracleConnectionStringBuilder
Dim value As ICollection

value = instance.Keys
public override ICollection Keys { get; }
public:
virtual property ICollection^ Keys {
    ICollection^ get () override;
}
/** @property */
public ICollection get_Keys ()

プロパティ
OracleConnectionStringBuilder 内のキー格納している ICollection

解説解説

ICollection 内の値の順序指定されていませんが、Values プロパティから返されICollection 内の関連付けられている値の順序と同じです。

使用例使用例

新しOracleConnectionStringBuilder作成するコンソール アプリケーションの例を次に示します。このコードでは、Keys プロパティから返されICollectionループ処理しながらキー/値ペア表示します

' You may have to set a reference to the System.Data.OracleClient
' assembly before running this example.
Imports System.Data.OracleClient

Module Module1
  Sub Main()
    Dim builder As New OracleConnectionStringBuilder
    builder.DataSource = "OracleSample"
    builder.IntegratedSecurity = True

    ' Loop through the collection of keys, displaying 
    ' the key and value for each item.
    For Each key As String
 In builder.Keys
      Console.WriteLine("{0}={1}", key, builder(key))
    Next

    Console.WriteLine()
    Console.WriteLine("Press Enter to continue.")
    Console.ReadLine()
  End Sub
End Module
// You may need to set a reference to the System.Data.OracleClient
// assembly before running this example.
using System.Data.OracleClient;

class Program
{
    static void Main()
    {
        OracleConnectionStringBuilder builder =
            new OracleConnectionStringBuilder();
        builder.DataSource = "OracleSample";
        builder.IntegratedSecurity = true;

        // Loop through the collection of keys, displaying 
        // the key and value for each item.
        foreach (string key in
 builder.Keys)
            Console.WriteLine("{0}={1}", key, builder[key]);

        Console.WriteLine();
        Console.WriteLine("Press Enter to continue.");
        Console.ReadLine();
    }
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
OracleConnectionStringBuilder クラス
OracleConnectionStringBuilder メンバ
System.Data.OracleClient 名前空間
Values
OracleConnectionStringBuilder.Item プロパティ
その他の技術情報
Building Connection Strings



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

OracleConnectionStringBuilder.Keys プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



OracleConnectionStringBuilder.Keys プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS