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 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
- uiObject
Type: Microsoft.VisualStudio.TestTools.UITest.Common.UIMap.UIObject
A UIObject.
- 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
- 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