C# Class Rock.Web.UI.Controls.AttributeFieldObject

Helper class that can be used by blocks to pre-load attributes/values so that the attribute field columns don't need to call LoadAttributes or query for attribute values for every row/column
Inheritance: IHasAttributes
Show file Open project: NewSpring/Rock Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
AttributeFieldObject ( ) : System

Initializes a new instance of the AttributeFieldObject class.

GetAttributeValue ( string key ) : string

Gets the value of an attribute key.

GetAttributeValues ( string key ) : List

Gets the value of an attribute key - splitting that delimited value into a list of strings.

SetAttributeValue ( string key, string value ) : void

Sets the value of an attribute key in memory. Note, this will not persist value to database

Method Details

AttributeFieldObject() public method

Initializes a new instance of the AttributeFieldObject class.
public AttributeFieldObject ( ) : System
return System

GetAttributeValue() public method

Gets the value of an attribute key.
public GetAttributeValue ( string key ) : string
key string The key.
return string

GetAttributeValues() public method

Gets the value of an attribute key - splitting that delimited value into a list of strings.
public GetAttributeValues ( string key ) : List
key string The key.
return List

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