FileUploadParameter Class
Represents a file upload form post parameter.
Inheritance Hierarchy
Object
Microsoft.VisualStudio.TestTools.WebTesting.Parameter
Microsoft.VisualStudio.TestTools.WebTesting.FormPostParameter
Microsoft.VisualStudio.TestTools.WebTesting.FileUploadParameter
Namespace: Microsoft.VisualStudio.TestTools.WebTesting
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public Class FileUploadParameter _
Inherits FormPostParameter
[SerializableAttribute]
public class FileUploadParameter : FormPostParameter
[SerializableAttribute]
public ref class FileUploadParameter : public FormPostParameter
[<SerializableAttribute>]
type FileUploadParameter =
class
inherit FormPostParameter
end
public class FileUploadParameter extends FormPostParameter
The FileUploadParameter type exposes the following members.
Constructors
Name | Description | |
---|---|---|
FileUploadParameter() | Initializes a new instance of the FileUploadParameter class. | |
FileUploadParameter(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. | |
FileUploadParameter(String, String, String) | Initializes a new instance of the FileUploadParameter class using the parameter name, file name and the type of content. | |
FileUploadParameter(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.. |
Top
Properties
Name | Description | |
---|---|---|
ContentType | Gets or sets the content type header. | |
FileName | Gets or sets the file name to upload. | |
FileUploadName | ||
GenerateUniqueName | Gets or sets a Boolean value to indicate whether to generate a unique file name for the uploaded file. | |
Name | Gets or sets the parameter name. (Inherited from Parameter.) | |
UrlEncode | Gets or sets a value that indicates whether the Name and Value will be URL encoded. (Inherited from Parameter.) | |
UseGuids | ||
Value | Gets or sets the string value of the parameter. (Inherited from Parameter.) |
Top
Methods
Name | Description | |
---|---|---|
Clone | Performs a MemberwiseClone on this instance. (Overrides FormPostParameter.Clone().) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.