共用方式為


FileUploadParameter 建構函式 (String, String, String, Boolean)

使用參數名稱、檔案名稱、內容類型和布林值產生唯一名稱,初始化 FileUploadParameter 類別的新執行個體。

命名空間:  Microsoft.VisualStudio.TestTools.WebTesting
組件:  Microsoft.VisualStudio.QualityTools.WebTestFramework (在 Microsoft.VisualStudio.QualityTools.WebTestFramework.dll 中)

語法

'宣告
Public Sub New ( _
    name As String, _
    fileName As String, _
    contentType As String, _
    generateUniqueName As Boolean _
)
public FileUploadParameter(
    string name,
    string fileName,
    string contentType,
    bool generateUniqueName
)
public:
FileUploadParameter(
    String^ name, 
    String^ fileName, 
    String^ contentType, 
    bool generateUniqueName
)
new : 
        name:string * 
        fileName:string * 
        contentType:string * 
        generateUniqueName:bool -> FileUploadParameter
public function FileUploadParameter(
    name : String, 
    fileName : String, 
    contentType : String, 
    generateUniqueName : boolean
)

參數

  • contentType
    型別:System.String
    要上傳之內容的類型。
  • generateUniqueName
    型別:System.Boolean
    true 會產生檔案的唯一名稱,否則為 false。

.NET Framework 安全性

請參閱

參考

FileUploadParameter 類別

FileUploadParameter 多載

Microsoft.VisualStudio.TestTools.WebTesting 命名空間