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 名前空間


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

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

辞書ショートカット

すべての辞書の索引

「X509ChainElementCollection」の関連用語

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

   

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



X509ChainElementCollectionのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS