FileUploadParameter Constructor (String, String, String, Boolean)
Initializes a new instance of the FileUploadParameter class using the parameter name, file name, type of content and a boolean value to generate a unique name..
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, _
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
)
Parameters
name
Type: StringThe parameter name.
fileName
Type: StringThe name of the file to upload.
contentType
Type: StringType of content to upload.
generateUniqueName
Type: Booleantrue to generate a unique name for the file; otherwise, false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.