Export (0) Print
Expand All

FileUploadParameter Class

Represents a file upload form post parameter.

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)

[SerializableAttribute]
public class FileUploadParameter : FormPostParameter

The FileUploadParameter type exposes the following members.

  NameDescription
Public methodFileUploadParameter()Initializes a new instance of the FileUploadParameter class.
Public methodFileUploadParameter(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 methodFileUploadParameter(String, String, String)Initializes a new instance of the FileUploadParameter class using the parameter name, file name and the type of content.
Public methodFileUploadParameter(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

  NameDescription
Public propertyContentTypeGets or sets the content type header.
Public propertyFileNameGets or sets the file name to upload.
Public propertyFileUploadName
Public propertyGenerateUniqueNameGets or sets a Boolean value to indicate whether to generate a unique file name for the uploaded file.
Public propertyNameGets or sets the parameter name. (Inherited from Parameter.)
Public propertyUrlEncodeGets or sets a value that indicates whether the Name and Value will be URL encoded. (Inherited from Parameter.)
Public propertyUseGuids
Public propertyValueGets or sets the string value of the parameter. (Inherited from Parameter.)
Top

  NameDescription
Public methodClonePerforms a MemberwiseClone on this instance. (Overrides FormPostParameter.Clone().)
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2015 Microsoft