Share via


FileUploadParameter Constructor (String, String)

Initializes a new instance of the FileUploadParameter class with values for the inherited Name and UrlEncode properties in addition to the FileName property.

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Syntax

'Declaration
Public Sub New ( _
    name As String, _
    fileName As String _
)
public FileUploadParameter(
    string name,
    string fileName
)
public:
FileUploadParameter(
    String^ name, 
    String^ fileName
)
new : 
        name:string * 
        fileName:string -> FileUploadParameter
public function FileUploadParameter(
    name : String, 
    fileName : String
)

Parameters

  • name
    Type: String

    The parameter name.

  • fileName
    Type: String

    The name of the file to upload.

Remarks

Sets the UrlEncode property to true.

.NET Framework Security

See Also

Reference

FileUploadParameter Class

FileUploadParameter Overload

Microsoft.VisualStudio.TestTools.WebTesting Namespace