FileUploadParameter.ContentType 属性

获取或设置该内容类型标头。

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

语法

声明
Public Property ContentType As String
    Get
    Set
public string ContentType { get; set; }
public:
property String^ ContentType {
    String^ get ();
    void set (String^ value);
}
member ContentType : string with get, set
function get ContentType () : String
function set ContentType (value : String)

属性值

类型:System.String
内容类型标头。默认值为“application/octet-stream”。

.NET Framework 安全性

请参见

参考

FileUploadParameter 类

Microsoft.VisualStudio.TestTools.WebTesting 命名空间