C# Класс 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
Наследование: IHasAttributes
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
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

Описание методов

AttributeFieldObject() публичный Метод

Initializes a new instance of the AttributeFieldObject class.
public AttributeFieldObject ( ) : System
Результат System

GetAttributeValue() публичный Метод

Gets the value of an attribute key.
public GetAttributeValue ( string key ) : string
key string The key.
Результат string

GetAttributeValues() публичный Метод

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.
Результат List

SetAttributeValue() публичный Метод

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.
Результат void