WykopSharpClient.Repository.Builder.RelatedQuery.WithTitle C# (CSharp) Method

WithTitle() public method

public WithTitle ( string title ) : RelatedQuery
title string
return RelatedQuery
        public RelatedQuery WithTitle(string title)
        {
            if (string.IsNullOrWhiteSpace(title))
                throw new ArgumentException("Argument is null or whitespace", nameof(title));
            if (title.Length < TitleMinLength)
                throw new ArgumentException("Argument is shorter than {TitleMinLength}", nameof(title));
            if (title.Length > TitleMaxLength)
                throw new ArgumentException("Argument is longer than {TitleMaxLength}", nameof(title));

            _title = title;
            return this;
        }