 | ValidateAttributeNotContains Method (RepoItemInfo, String, String, String, ValidateOptions) |
Validates if the attribute of the element for the specified repository item does not contain the specific value.
Namespace:
Ranorex
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic static bool AttributeNotContains(
RepoItemInfo itemInfo,
string name,
string value,
string message,
ValidateOptions options
)
Public Shared Function AttributeNotContains (
itemInfo As RepoItemInfo,
name As String,
value As String,
message As String,
options As ValidateOptions
) As Boolean
Parameters
- itemInfo
- Type: Ranorex.Core.RepositoryRepoItemInfo
The RepoItemInfo object for the repository item. - name
- Type: SystemString
The name of the attribute to validate. - value
- Type: SystemString
The value of the attribute to contain. - message
- Type: SystemString
The message to log. "{0}" is replaced by the name of the
itemInfo object, "{1}" by the attribute name, "{2}" by
the string representation of the actual attribute value (or "(not retrieved)" if the attribute
could not be retrieved), and "{3}" by the string representation of the expected value. - options
- Type: RanorexValidateOptions
Additional ValidateOptions for this validation action.
Return Value
Type:
BooleanTrue if the attribute value contains the specified
value;
otherwise
false.
Exceptions
See Also