FormPostHttpBody.ContentType Property
Gets a value that indicates the content type of the data being sent.
Namespace: Microsoft.VisualStudio.TestTools.WebTesting
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Syntax
'Declaration
Public ReadOnly Property ContentType As String
public string ContentType { get; }
public:
virtual property String^ ContentType {
String^ get () sealed;
}
abstract ContentType : string with get
override ContentType : string with get
final function get ContentType () : String
Property Value
Type: String
A value representing the content type.
Implements
Remarks
If there are any file upload parameters, the content type is multipart/form-data, 'multipart/form-data'. Otherwise, the content type is URL encoded, 'application/x-www-form-urlencoded'.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.