RanorexRanorex Documentation
Attribute Method (itemInfo, name, regex)
NamespacesRanorexValidateAttribute(RepoItemInfo, String, Regex)
Validates if the attribute of the element for the specified repository item matches a specific regular expression.
Declaration Syntax
C#Visual BasicVisual C++
public static void Attribute(
	RepoItemInfo itemInfo,
	string name,
	Regex regex
)
Public Shared Sub Attribute ( _
	itemInfo As RepoItemInfo, _
	name As String, _
	regex As Regex _
)
public:
static void Attribute(
	RepoItemInfo^ itemInfo, 
	String^ name, 
	Regex^ regex
)
Parameters
itemInfo (RepoItemInfo)
The RepoItemInfo object for the repository item.
name (String)
The name of the attribute to validate.
regex (Regex)
The regular expression to validate the attribute value string representation against.
Exceptions
ExceptionCondition
ValidationExceptionIf the validation fails.

Assembly: Ranorex.Core (Module: Ranorex.Core) Version: 4.0.3.22982 (4.0.3.22982)