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

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

ProtectedConfigurationSection.Providers プロパティ

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

参加しているすべての構成ファイル内のすべての ProtectedConfigurationProvider オブジェクトの ProviderSettingsCollection コレクション取得します

名前空間: System.Configuration
アセンブリ: System.Configuration (system.configuration.dll 内)
構文構文

Public ReadOnly Property
 Providers As ProviderSettingsCollection
Dim instance As ProtectedConfigurationSection
Dim value As ProviderSettingsCollection

value = instance.Providers
public ProviderSettingsCollection Providers { get;
 }
public:
property ProviderSettingsCollection^ Providers {
    ProviderSettingsCollection^ get ();
}
/** @property */
public ProviderSettingsCollection get_Providers ()
public function get Providers
 () : ProviderSettingsCollection

プロパティ
参加しているすべての構成ファイル内のすべての 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());
    }

}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ProtectedConfigurationSection クラス
ProtectedConfigurationSection メンバ
System.Configuration 名前空間


このページでは「.NET Framework クラス ライブラリ リファレンス」からProtectedConfigurationSection.Providers プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からProtectedConfigurationSection.Providers プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からProtectedConfigurationSection.Providers プロパティ を検索

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2024 GRAS Group, Inc.RSS