This documentation is archived and is not being maintained.
SoapMessage.ContentEncoding Property
.NET Framework 1.1
Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.
Gets or sets the contents of the Content-Encoding HTTP header.
[Visual Basic] Public Property ContentEncoding As String [C#] public string ContentEncoding {get; set;} [C++] public: __property String* get_ContentEncoding(); public: __property void set_ContentEncoding(String*); [JScript] public function get ContentEncoding() : String; public function set ContentEncoding(String);
Property Value
The contents of the Content-Encoding HTTP header.
Exceptions
| Exception Type | Condition |
|---|---|
| InvalidOperationException | The current SoapMessageStage is AfterSerialize or AfterDeserialize stages. |
Remarks
A SOAP extension can set the ContentEncoding property to provide supplementary information about the encoding of a SOAP message without changing the media type as expressed in the Content-Type HTTP header.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
SoapMessage Class | SoapMessage Members | System.Web.Services.Protocols Namespace | SoapExtension | ContentType
Show: