HttpWebClientProtocol.ClientCertificates プロパティ
アセンブリ: System.Web.Services (system.web.services.dll 内)

Dim instance As HttpWebClientProtocol Dim value As X509CertificateCollection value = instance.ClientCertificates
public: property X509CertificateCollection^ ClientCertificates { X509CertificateCollection^ get (); }
クライアント証明書を表す X509CertificateCollection。

このプロパティにより、クライアントは XML Web サービス メソッドを呼び出したときに Authenticode X.509 v.3 証明書とも呼ばれる 1 つ以上のクライアント証明書を渡すことができます。XML Web サービス メソッドでクライアント証明書を使用するように設定されている場合は、クライアント証明書をクライアント認証の方法の 1 つとして使用できます。クライアント証明書の設定の詳細については、Internet Information Services (IIS) のドキュメントを参照してください。

ファイルからクライアント証明書を読み込んで ClientCertificates プロパティに追加し、認証にクライアント証明書を使用する XML Web サービス メソッドを呼び出すコード例を次に示します。
' Create a new instance of a proxy class for the Bank XML Web service. Dim bank As BankSession = new BankSession() ' Load the client certificate from a file. Dim x509 As X509Certificate = X509Certificate.CreateFromCertFile("c:\user.cer") ' Add the client certificate to the ClientCertificates property of the proxy class. bank.ClientCertificates.Add(x509) ' Communicate with the Deposit XML Web service method, ' which requires authentication using client certificates. bank.Deposit(500)
// Create a new instance of a proxy class for the Bank XML Web service. BankSession bank = new BankSession(); // Load the client certificate from a file. X509Certificate x509 = X509Certificate.CreateFromCertFile(@"c:\user.cer"); // Add the client certificate to the ClientCertificates property of the proxy class. bank.ClientCertificates.Add(x509); // Communicate with the Deposit XML Web service method, // which requires authentication using client certificates. bank.Deposit(500);

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からHttpWebClientProtocol.ClientCertificates プロパティを検索する場合は、下記のリンクをクリックしてください。

- HttpWebClientProtocol.ClientCertificates プロパティのページへのリンク