Validates if the attribute of the element for the specified repository item matches a specific regular expression.
| C# | Visual Basic | Visual 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 )
- 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.
| Exception | Condition |
|---|---|
| ValidationException | If the validation fails. |
