OracleConnectionStringBuilder.Keys プロパティ
アセンブリ: System.Data.OracleClient (system.data.oracleclient.dll 内)

OracleConnectionStringBuilder 内のキーを格納している 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(); } }

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- OracleConnectionStringBuilder.Keys プロパティのページへのリンク