ProtectedConfigurationProviderCollection クラス

定義

ProtectedConfigurationProvider オブジェクトのコレクションを提供します。

public ref class ProtectedConfigurationProviderCollection : System::Configuration::Provider::ProviderCollection
public class ProtectedConfigurationProviderCollection : System.Configuration.Provider.ProviderCollection
type ProtectedConfigurationProviderCollection = class
    inherit ProviderCollection
Public Class ProtectedConfigurationProviderCollection
Inherits ProviderCollection
継承
ProtectedConfigurationProviderCollection

注釈

クラスの プロパティはProviders、アプリケーションでProtectedConfigurationProviderCollection使用できるすべての保護構成プロバイダーのコレクションProtectedConfigurationです。

構成ファイルのセクションを暗号化して、アプリケーションで使用される機密情報を保護できます。 これにより、攻撃者が構成ファイルにアクセスした場合でも、不正アクセスが困難になり、セキュリティが向上します。

.NET Frameworkには、構成ファイルRsaProtectedConfigurationProviderのセクションを暗号化するために使用できる 2 つの保護された構成プロバイダーが含まれています。クラスは、 クラスをRSACryptoServiceProvider使用して構成セクションを暗号化しDpapiProtectedConfigurationProvider、クラスは Windows Data Protection API (DPAPI) を使用して構成セクションを暗号化します。

RSA または DPAPI プロバイダー以外のアルゴリズムを使用して機密情報を暗号化する必要がある場合があります。 この場合は、独自のカスタム protected-configuration プロバイダーを構築できます。 クラスは ProtectedConfigurationProvider 、独自の protected-configuration プロバイダーを作成するために継承する必要がある抽象基本クラスです。

保護された構成の詳細については、「保護された構成 を使用した構成情報の暗号化」を参照してください。

コンストラクター

ProtectedConfigurationProviderCollection()

既定の設定を使用して ProtectedConfigurationProviderCollection クラスの新しいインスタンスを初期化します。

プロパティ

Count

コレクション内のプロバイダーの数を取得します。

(継承元 ProviderCollection)
IsSynchronized

コレクションへのアクセスが同期されている (スレッド セーフである) かどうかを示す値を取得します。

(継承元 ProviderCollection)
Item[String]

コレクション内の、指定した名前の ProtectedConfigurationProvider オブジェクトを取得します。

SyncRoot

現在のオブジェクトを取得します。

(継承元 ProviderCollection)

メソッド

Add(ProviderBase)

ProtectedConfigurationProvider オブジェクトをコレクションに追加します。

Clear()

コレクションからすべての項目を削除します。

(継承元 ProviderCollection)
CopyTo(ProviderBase[], Int32)

指定したインデックスを開始位置として、特定の配列にコレクションの内容をコピーします。

(継承元 ProviderCollection)
Equals(Object)

指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
GetEnumerator()

コレクションを反復処理するための IEnumerator インターフェイスを実装するオブジェクトを返します。

(継承元 ProviderCollection)
GetHashCode()

既定のハッシュ関数として機能します。

(継承元 Object)
GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
MemberwiseClone()

現在の Object の簡易コピーを作成します。

(継承元 Object)
Remove(String)

コレクションからプロバイダーを削除します。

(継承元 ProviderCollection)
SetReadOnly()

コレクションを読み取り専用に設定します。

(継承元 ProviderCollection)
ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)

明示的なインターフェイスの実装

ICollection.CopyTo(Array, Int32)

特定の配列インデックスを開始位置として、配列に ProviderCollection の要素をコピーします。

(継承元 ProviderCollection)

拡張メソッド

Cast<TResult>(IEnumerable)

IEnumerable の要素を、指定した型にキャストします。

OfType<TResult>(IEnumerable)

指定された型に基づいて IEnumerable の要素をフィルター処理します。

AsParallel(IEnumerable)

クエリの並列化を有効にします。

AsQueryable(IEnumerable)

IEnumerableIQueryable に変換します。

適用対象

こちらもご覧ください