SmtpClient.ClientCertificates プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > SmtpClient.ClientCertificates プロパティの意味・解説 

SmtpClient.ClientCertificates プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

SSL (Secure Sockets Layer) 接続確立するために使用する必要のある証明書を指定します

名前空間: System.Net.Mail
アセンブリ: System (system.dll 内)
構文構文

Public ReadOnly Property
 ClientCertificates As X509CertificateCollection
Dim instance As SmtpClient
Dim value As X509CertificateCollection

value = instance.ClientCertificates
public X509CertificateCollection ClientCertificates { get;
 }
public:
property X509CertificateCollection^ ClientCertificates {
    X509CertificateCollection^ get ();
}
/** @property */
public X509CertificateCollection get_ClientCertificates ()
public function get ClientCertificates
 () : X509CertificateCollection

プロパティ
1 つ上のクライアント証明書保持している X509CertificateCollection。既定値は、構成ファイルメール構成属性から派生します。

解説解説
使用例使用例

SMTP サーバーとの SSL 接続確立し、その接続使用して電子メール送信するコード例次に示します

public static void CreateTestMessage(string
 server)
{
    string to = "jane@contoso.com";
    string from = "ben@contoso.com";
    MailMessage message = new MailMessage(from, to);
    message.Subject = "Using the new SMTP client.";
    message.Body = @"Using this new feature,
 you can send an e-mail message from an application very easily.";
    SmtpClient client = new SmtpClient(server);
    // Credentials are necessary if the server requires the client 
    // to authenticate before it will send e-mail on the client's behalf.
    client.UseDefaultCredentials = true;
                client.EnableSsl = true;
    client.Send(message);
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


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

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

辞書ショートカット

すべての辞書の索引

SmtpClient.ClientCertificates プロパティのお隣キーワード
検索ランキング

   

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



SmtpClient.ClientCertificates プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS