MailMessage.Fields プロパティ
アセンブリ: System.Web (system.web.dll 内)


Fields プロパティは、CDO (Collaboration Data Objects) に拡張プロパティを設定するために使用します。CDO の詳細については、MSDN ライブラリ (http://msdn.microsoft.com/library) で「Collaboration Data Objects」および「Configuration CoClass」を参照してください。

Fields プロパティを使用して、ユーザー名とパスワードを認証のために SMTP (Simple Mail Transfer Protocol) サーバーに送信する方法を次のコード例に示します。
' Use the Fields property to add authentication, your username, and your password. mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1") mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "marsha") mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "secret")
// Use the Fields property to add authentication, your username, and your password. mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1"); mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "marsha"); mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "secret");

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


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

- MailMessage.Fields プロパティのページへのリンク