Partager via


Parameter Class

Represents an HTTP parameter base class.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.TestTools.WebTesting.Parameter
    Microsoft.VisualStudio.TestTools.WebTesting.FormPostParameter
    Microsoft.VisualStudio.TestTools.WebTesting.QueryStringParameter

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

Syntax

'Declaration
<SerializableAttribute> _
Public MustInherit Class Parameter _
    Implements ICloneable
[SerializableAttribute]
public abstract class Parameter : ICloneable
[SerializableAttribute]
public ref class Parameter abstract : ICloneable
[<AbstractClass>]
[<SerializableAttribute>]
type Parameter =  
    class 
        interface ICloneable 
    end
public abstract class Parameter implements ICloneable

The Parameter type exposes the following members.

Constructors

  Name Description
Protected method Parameter This class is abstract and cannot be instantiated.

Top

Properties

  Name Description
Public property Name Gets or sets the parameter name.
Public property UrlEncode Gets or sets a value that indicates whether the Name and Value will be URL encoded.
Public property Value Gets or sets the string value of the parameter.

Top

Methods

  Name Description
Public method Clone When overridden in a derived class, creates a cloned copy of the Parameter instance.
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 the default hash function. (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

Remarks

This class is serializable.

Notes to Inheritors

When you inherit from Parameter, you must override Clone.

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

Other Resources

Working with Web Tests