Table of Contents

Class ResourceStringInfo

Namespace
CMS.Localization
Assembly
CMS.Globalization.dll

Resource info data container class.

[Obsolete("This API was not intended for public use.")]
[ObsoleteSince(29, 1)]
public class ResourceStringInfo : ResourceStringInfoBase<ResourceStringInfo, IResourceStringInfoProvider>, IExtensible, IInfo, IAdvancedDataContainer, ICMSObject, IHierarchicalDataContainer, IDataContainer, ISimpleDataContainer, IVirtualHierarchicalObject, IHierarchicalObject, INameIndexable, IMacroObject
Inheritance
object
ResourceStringInfo
Implements
Inherited Members
Extension Methods

Constructors

ResourceStringInfo()

Constructor, creates an empty ResourceStringInfo structure.

public ResourceStringInfo()

ResourceStringInfo(DataRow)

Constructor, creates an ResourceStringInfo object from the given DataRow data.

public ResourceStringInfo(DataRow dr)

Parameters

dr DataRow

Data row with the class info data

Fields

OBJECT_TYPE

Object type

public const string OBJECT_TYPE = "cms.resourcestring"

Field Value

string

TYPEINFO

Type information.

public static ObjectTypeInfo TYPEINFO

Field Value

ObjectTypeInfo

Properties

CultureCode

The UICulture code.

public string CultureCode { get; set; }

Property Value

string

TranslationText

The translation text.

public string TranslationText { get; set; }

Property Value

string

Methods

DeleteObject()

Deletes the object using appropriate provider.

protected override void DeleteObject()

GetColumnNames()

Gets the default list of column names for this class

protected override List<string> GetColumnNames()

Returns

List<string>

LoadData(LoadDataSettings)

Loads the object data from given data container.

protected override void LoadData(LoadDataSettings settings)

Parameters

settings LoadDataSettings

Data settings

LoadDefaultData()

Loads the default data to the object.

protected override void LoadDefaultData()

SetObject()

Updates the object using appropriate provider.

protected override void SetObject()

SetValue(string, object)

Sets value to the specified column.

public override bool SetValue(string columnName, object value)

Parameters

columnName string

Column name

value object

New value

Returns

bool

TryGetValue(string, out object)

Retrieves value of the specified column.

public override bool TryGetValue(string columnName, out object value)

Parameters

columnName string

Column name

value object

Retrieved column value

Returns

bool

Returns true if the operation was successful (the value was present)