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

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