GetAttributeByName() public method

Gets attribute by name.
/// Thrown if attribute with given name is not found. ///
public GetAttributeByName ( string name ) : LibiadaWeb.Attribute
name string /// The name. ///
return LibiadaWeb.Attribute
Example #1
0
        /// <summary>
        /// The create sequence attribute.
        /// </summary>
        /// <param name="attributeName">
        /// The attribute name.
        /// </param>
        /// <param name="attributeValue">
        /// The attribute value.
        /// </param>
        /// <param name="sequenceId">
        /// The sequence id.
        /// </param>
        /// <returns>
        /// The <see cref="SequenceAttribute"/>.
        /// </returns>
        private SequenceAttribute Create(string attributeName, string attributeValue, long sequenceId)
        {
            Attribute attribute = attributeRepository.GetAttributeByName(attributeName);

            return(Create(attribute, attributeValue, sequenceId));
        }