Share via


FileUploadParameter.FileName Property

Gets or sets the file name to upload.

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

Syntax

'Declaration
Public Property FileName As String
'Usage
Dim instance As FileUploadParameter 
Dim value As String 

value = instance.FileName

instance.FileName = value
public string FileName { get; set; }
public:
property String^ FileName {
    String^ get ();
    void set (String^ value);
}
public function get FileName () : String 
public function set FileName (value : String)

Property Value

Type: System.String
The file name to upload.

Remarks

The FileName is relative to the deployment directory. You must add this file as a deployment item using the DeploymentItemAttribute. If the test is run on the local computer, FileName can be specified with an absolute path.

.NET Framework Security

See Also

Reference

FileUploadParameter Class

FileUploadParameter Members

Microsoft.VisualStudio.TestTools.WebTesting Namespace