SoapMessage.ContentType プロパティ
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文Dim instance As SoapMessage Dim value As String value = instance.ContentType instance.ContentType = value
/** @property */ public String get_ContentType () /** @property */ public void set_ContentType (String value)
SOAP 要求または SOAP 応答の HTTP Content-Type。既定値は、"text/xml" です。
例外
解説ContentType プロパティには、BeforeSerialize の段階および BeforeDeserialize の段階に限りアクセスできます。それ以外の場合は InvalidOperationException がスローされます。
SOAP メッセージのエンコードに関する補足情報を提供するには、ContentType プロパティの代わりに、ContentEncoding プロパティを使用してください。
使用例myStreamWriter.WriteLine("The contents of HTTP Content-type header
is:")
myStreamWriter.WriteLine(ControlChars.Tab & message.ContentType)
myStreamWriter.WriteLine("The contents of HTTP Content-type header is:");
myStreamWriter.WriteLine("\t" + message.ContentType);
myStreamWriter->WriteLine( "The contents of HTTP Content-type header is:" ); myStreamWriter->WriteLine( "\t{0}", message->ContentType );
プラットフォーム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に収録されているすべての辞書からSoapMessage.ContentType プロパティを検索する場合は、下記のリンクをクリックしてください。
全ての辞書からSoapMessage.ContentType プロパティ
を検索
- SoapMessage.ContentType プロパティのページへのリンク