FormPostHttpBody.ContentType 属性
获取一个值,该值指示正在发送的数据的内容类型。
命名空间: Microsoft.VisualStudio.TestTools.WebTesting
程序集: Microsoft.VisualStudio.QualityTools.WebTestFramework(在 Microsoft.VisualStudio.QualityTools.WebTestFramework.dll 中)
语法
声明
Public ReadOnly Property ContentType As String
Get
public string ContentType { get; }
public:
virtual property String^ ContentType {
String^ get () sealed;
}
abstract ContentType : string
override ContentType : string
final function get ContentType () : String
属性值
类型:System.String
表示内容类型的值。
实现
备注
如果存在任何文件上载参数,则内容类型为多部分/格式-数据,“multipart/form-data”。 否则,内容类型是 URL 编码的,“application/x-www-form-urlencoded”。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。