Dela via


FileUploadParameter Class

Represents a file upload form post parameter.

Inheritance Hierarchy

System.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
Public method FileUploadParameter() Initializes a new instance of the FileUploadParameter class.
Public method 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.
Public method FileUploadParameter(String, String, String) Initializes a new instance of the FileUploadParameter class using the parameter name, file name and the type of content.
Public method 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
Public property ContentType Gets or sets the content type header.
Public property FileName Gets or sets the file name to upload.
Public property GenerateUniqueName Gets or sets a Boolean value to indicate whether to generate a unique file name for the uploaded file.
Public property Name Gets or sets the parameter name. (Inherited from Parameter.)
Public property UrlEncode Gets or sets a value that indicates whether the Name and Value will be URL encoded. (Inherited from Parameter.)
Public property Value Gets or sets the string value of the parameter. (Inherited from Parameter.)

Top

Methods

  Name Description
Public method Clone Performs a MemberwiseClone on this instance. (Overrides FormPostParameter.Clone().)
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method 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.

See Also

Reference

Microsoft.VisualStudio.TestTools.WebTesting Namespace