 | ElementSetAttributeValue Method (String, String) |
Sets the value of an attribute.
Namespace:
Ranorex.Core
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic void SetAttributeValue(
string name,
string value
)
Public Sub SetAttributeValue (
name As String,
value As String
)
Parameters
- name
- Type: SystemString
The name of the attribute. - value
- Type: SystemString
The value to set as string.
Implements
IElementSetAttributeValue(String, String)
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | If name is null. |
| SetAttributeFailedException | Thrown if setting the attribute value failed or the string value could not be converted to the attribute's type. |
See Also