コード例 #1
0
ファイル: RockBlock.cs プロジェクト: shelsonjava/Rock
        /// <summary>
        /// Returns a <see cref="System.Collections.Generic.List{String}"/> of the current block attribute values for the specified key. If the key is not
        /// found an empty list will be returned.
        /// </summary>
        /// <param name="key">A <see cref="System.String"/> representing the block attribute key</param>
        /// <returns>A <see cref="System.Collections.Generic.List{String}"/> containing the current attribute values for the specified key. If the key is not
        /// found, an empty list will be returned.</returns>
        public List <string> GetAttributeValues(string key)
        {
            if (_blockCache != null)
            {
                return(_blockCache.GetAttributeValues(key));
            }

            return(new List <string>());
        }