Validates if the element for the specified repository item exists.
| C# | Visual Basic | Visual C++ |
public static void Exists( RepoItemInfo itemInfo, string message )
Public Shared Sub Exists ( _ itemInfo As RepoItemInfo, _ message As String _ )
public: static void Exists( RepoItemInfo^ itemInfo, String^ message )
- itemInfo (RepoItemInfo)
- The RepoItemInfo object for the repository item.
- message (String)
- The message to log. "{0}" is replaced by the name of the itemInfo object.
| Exception | Condition |
|---|---|
| ValidationException | If the validation fails. |
