X509ChainElementCollectionとは? わかりやすく解説

X509ChainElementCollection クラス

メモ : このクラスは、.NET Framework version 2.0 で新しく追加されたものです。

X509ChainElement オブジェクトのコレクションを表します。このクラスは継承できません。

名前空間: System.Security.Cryptography.X509Certificates
アセンブリ: System (system.dll 内)
構文構文

Public NotInheritable Class
 X509ChainElementCollection
    Implements ICollection, IEnumerable
Dim instance As X509ChainElementCollection
public sealed class X509ChainElementCollection
 : ICollection, IEnumerable
public ref class X509ChainElementCollection
 sealed : ICollection, IEnumerable
public final class X509ChainElementCollection
 implements ICollection, IEnumerable
public final class X509ChainElementCollection
 implements ICollection, IEnumerable
解説解説
使用例使用例

現在のユーザーの個人用証明書ストアを開いて、ユーザーが証明書を選択できるようにし、証明書および証明書チェーン情報をコンソールに出力するコード例を次に示します。出力は、選択した証明書に依存します。

//Output chain element information.
Console.WriteLine ("Chain Element Information");
Console.WriteLine ("Number of chain elements: {0}", ch.ChainElements.Count);
Console.WriteLine ("Chain elements synchronized? {0} {1}", ch.ChainElements.IsSynchronized,
 Environment.NewLine);
    
foreach (X509ChainElement element in ch.ChainElements)
{
    Console.WriteLine ("Element issuer name: {0}", element.Certificate.Issuer);
    Console.WriteLine ("Element certificate valid until: {0}", element.Certificate.NotAfter);
    Console.WriteLine ("Element certificate is valid: {0}", element.Certificate.Verify
 ());
    Console.WriteLine ("Element error status length: {0}", element.ChainElementStatus.Length);
    Console.WriteLine ("Element information: {0}", element.Information);
    Console.WriteLine ("Number of element extensions: {0}{1}", element.Certificate.Extensions.Count,
 Environment.NewLine);

    if (ch.ChainStatus.Length > 1)
    {
        for (int index = 0; index < element.ChainElementStatus.Length;
 index++)
        {
            Console.WriteLine (element.ChainElementStatus[index].Status);
            Console.WriteLine (element.ChainElementStatus[index].StatusInformation);
        }
    }
}
store.Close();
継承階層継承階層
System.Object
  System.Security.Cryptography.X509Certificates.X509ChainElementCollection
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
X509ChainElementCollection メンバ
System.Security.Cryptography.X509Certificates 名前空間

X509ChainElementCollection プロパティ


パブリック プロパティパブリック プロパティ

参照参照

関連項目

X509ChainElementCollection クラス
System.Security.Cryptography.X509Certificates 名前空間

X509ChainElementCollection メソッド


パブリック メソッドパブリック メソッド

プロテクト メソッドプロテクト メソッド
明示的インターフェイスの実装明示的インターフェイスの実装
  名前 説明
インターフェイスの明示的な実装 System.Collections.ICollection.CopyTo 指定したインデックスを開始位置として、配列に X509ChainElementCollection オブジェクトをコピーします。
インターフェイスの明示的な実装 System.Collections.IEnumerable.GetEnumerator チェーンの要素のコレクション内を移動するために使用できる IEnumerator オブジェクトを取得します。
参照参照

関連項目

X509ChainElementCollection クラス
System.Security.Cryptography.X509Certificates 名前空間

X509ChainElementCollection メンバ

X509ChainElement オブジェクトのコレクションを表します。このクラスは継承できません。

X509ChainElementCollection データ型で公開されるメンバを以下の表に示します。


パブリック プロパティパブリック プロパティ
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
明示的インターフェイスの実装明示的インターフェイスの実装
  名前 説明
インターフェイスの明示的な実装 System.Collections.ICollection.CopyTo 指定したインデックスを開始位置として、配列に X509ChainElementCollection オブジェクトをコピーします。
インターフェイスの明示的な実装 System.Collections.IEnumerable.GetEnumerator チェーンの要素のコレクション内を移動するために使用できる IEnumerator オブジェクトを取得します。
参照参照

関連項目

X509ChainElementCollection クラス
System.Security.Cryptography.X509Certificates 名前空間



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

「X509ChainElementCollection」の関連用語

X509ChainElementCollectionのお隣キーワード
検索ランキング

   

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



X509ChainElementCollectionのページの著作権

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

©2026 GRAS Group, Inc.RSS