IHttpBody.ContentType 属性

获取一个表示正文内容类型的值。

命名空间:  Microsoft.VisualStudio.TestTools.WebTesting
程序集:  Microsoft.VisualStudio.QualityTools.WebTestFramework(在 Microsoft.VisualStudio.QualityTools.WebTestFramework.dll 中)

语法

声明
ReadOnly Property ContentType As String
    Get
string ContentType { get; }
property String^ ContentType {
    String^ get ();
}
abstract ContentType : string
function get ContentType () : String

属性值

类型:System.String
正文内容类型。

备注

可以通过检查 FormPostParameter 的类型获取内容类型。

.NET Framework 安全性

请参见

参考

IHttpBody 接口

Microsoft.VisualStudio.TestTools.WebTesting 命名空间