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
override ContentType : string
final function get ContentType () : String

Property Value

Type: System.String
A value representing the content type.

Implements

IHttpBody.ContentType

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

See Also

Reference

FormPostHttpBody Class

Microsoft.VisualStudio.TestTools.WebTesting Namespace