Language

UITest.CreateAndAddParameter Method (UIObject, String, String)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Creates a parameter and adds it to the ValueMap property using the provided UI object, property name and parameter name.

Namespace:  Microsoft.VisualStudio.TestTools.UITest.CodeGeneration
Assembly:  Microsoft.VisualStudio.TestTools.UITest.CodeGeneration (in Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.dll)

Syntax

'Declaration
Public Sub CreateAndAddParameter ( _
    uiObject As UIObject, _
    propertyName As String, _
    parameterName As String _
)
'Usage
Dim instance As UITest
Dim uiObject As UIObject
Dim propertyName As String
Dim parameterName As String

instance.CreateAndAddParameter(uiObject, _
    propertyName, parameterName)
public void CreateAndAddParameter(
    UIObject uiObject,
    string propertyName,
    string parameterName
)
public:
void CreateAndAddParameter(
    UIObject^ uiObject, 
    String^ propertyName, 
    String^ parameterName
)
member CreateAndAddParameter : 
        uiObject:UIObject * 
        propertyName:string * 
        parameterName:string -> unit 
public function CreateAndAddParameter(
    uiObject : UIObject, 
    propertyName : String, 
    parameterName : String
)

Parameters

  • propertyName
    Type: System.String
    The name of a property in the uiObject that will provide the parameter value for this test.
  • parameterName
    Type: System.String
    The name of the parameter to add.

Exceptions

Exception Condition
[ArgumentNullException]

One or more of the provided parameters is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

UITest Class

UITest Members

CreateAndAddParameter Overload

Microsoft.VisualStudio.TestTools.UITest.CodeGeneration Namespace

UIObject