ProtectedConfigurationSection.Providers プロパティ
アセンブリ: System.Configuration (system.configuration.dll 内)

Dim instance As ProtectedConfigurationSection Dim value As ProviderSettingsCollection value = instance.Providers
参加しているすべての構成ファイル内のすべての ProtectedConfigurationProvider オブジェクトの ProviderSettingsCollection コレクション。

Providers プロパティを使用する方法を次のコード例に示します。
Shared Sub GetProviderCollection() Try ' Get the application configuration. Dim config As Configuration = _ ConfigurationManager.OpenExeConfiguration( _ ConfigurationUserLevel.None) ' Get the protected configuration section. Dim pcSection _ As ProtectedConfigurationSection = _ CType(config.GetSection( _ "configProtectedData"), _ System.Configuration.ProtectedConfigurationSection) Console.WriteLine( _ "Protected configuration section providers:") Dim ps As ProviderSettings For Each ps In pcSection.Providers Console.WriteLine(" {0}", ps.Name) Next ps Catch e As ConfigurationErrorsException Console.WriteLine(e.ToString()) End Try End Sub 'GetProviderCollection
static void GetProviderCollection() { try { // Get the application configuration. Configuration config = ConfigurationManager.OpenExeConfiguration( ConfigurationUserLevel.None); // Get the protected configuration section. ProtectedConfigurationSection pcSection = (System.Configuration.ProtectedConfigurationSection) config.GetSection("configProtectedData"); Console.WriteLine( "Protected configuration section providers:"); foreach (ProviderSettings ps in pcSection.Providers) { Console.WriteLine(" {0}", ps.Name); } } catch (ConfigurationErrorsException e) { Console.WriteLine(e.ToString()); } }

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からProtectedConfigurationSection.Providers プロパティを検索する場合は、下記のリンクをクリックしてください。

- ProtectedConfigurationSection.Providers プロパティのページへのリンク