IsValidRefName() публичный статический Метод

Check validity of a ref name. It must not contain character that has a special meaning in a Git object reference expression. Some other dangerous characters are also excluded.
public static IsValidRefName ( string refName ) : bool
refName string
Результат bool
Пример #1
0
 /// <summary>
 /// Check validity of a ref name. It must not contain a character that has
 /// a special meaning in a Git object reference expression. Some other
 /// dangerous characters are also excluded.
 /// </summary>
 /// <param name="refName"></param>
 /// <returns>
 /// Returns true if <paramref name="refName"/> is a valid ref name.
 /// </returns>
 public static bool IsValidName(string refName)
 {
     return(CoreRepository.IsValidRefName(refName));
 }