SoapWebRequest.ContentType Property
Gets or sets the content type of the SOAP request.
Namespace: Microsoft.Web.Services2
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)
Usage
'Usage
Dim soapWebRequest1 As SoapWebRequest
Dim returnValue As String
returnValue = soapWebRequest1.ContentType
Dim sampleValue As String
soapWebRequest1.ContentType = sampleValue
Syntax
'Declaration
Public Overrides Property ContentType() As String
public override string ContentType {get; set;}
public: property virtual String^ ContentType{
String^ get();
Void set(String^);
}
public System.String get_ContentType();
public void set_ContentType(System.String);
public override function get ContentType() : String;
public override function set ContentType(String);
Property Value
The content type of the SOAP request.
Remarks
When a SOAP request is made with the Web Services Enhancements (WSE), the value of the ContentType property is the value of the Content-Type HTTP header.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000
Target Platforms
Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone
See Also
Reference
SoapWebRequest Class
Microsoft.Web.Services2 Namespace