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

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > 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 名前空間


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

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

辞書ショートカット

すべての辞書の索引

「X509ChainElementCollection クラス」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS