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
Afficher le fichier Open project: NewSpring/Rock Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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 méthode

Initializes a new instance of the AttributeFieldObject class.
public AttributeFieldObject ( ) : System
Résultat System

GetAttributeValue() public méthode

Gets the value of an attribute key.
public GetAttributeValue ( string key ) : string
key string The key.
Résultat string

GetAttributeValues() public méthode

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.
Résultat List

SetAttributeValue() public méthode

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.
Résultat void