Language
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[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 action 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 ( _
action As UITestAction, _
parameterName As String _
)
'Usage
Dim instance As UITest
Dim action As UITestAction
Dim parameterName As String
instance.CreateAndAddParameter(action, _
parameterName)
public void CreateAndAddParameter(
UITestAction action,
string parameterName
)
public:
void CreateAndAddParameter(
UITestAction^ action,
String^ parameterName
)
member CreateAndAddParameter :
action:UITestAction *
parameterName:string -> unit
public function CreateAndAddParameter(
action : UITestAction,
parameterName : String
)
Parameters
- action
Type: Microsoft.VisualStudio.TestTools.UITest.Common.UITestAction
A UITestAction object.
- parameterName
Type: System.String
The name of the parameter to add.
Exceptions
| Exception | Condition |
|---|---|
| [ArgumentNullException] | One or both of the provided parameters is nulla null reference (Nothing in Visual Basic). |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
CreateAndAddParameter Overload
Microsoft.VisualStudio.TestTools.UITest.CodeGeneration Namespace