Rock.Web.UI.Controls.AttributeFieldObject.SetAttributeValue C# (CSharp) Method

SetAttributeValue() public method

Sets the value of an attribute key in memory. Note, this will not persist value to database
public SetAttributeValue ( string key, string value ) : void
key string The key.
value string The value.
return void
        public void SetAttributeValue( string key, string value )
        {
            if ( this.AttributeValues != null &&
                this.AttributeValues.ContainsKey( key ) )
            {
                this.AttributeValues[key].Value = value;
            }
        }