AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

AdvantageModuleEngine..::..GetPublishedObjectsBykey<(Of <(<'T>)>)> Method (String, eComparison, Decimal)

Performs a indexed search of all business objects of the specified type and returns a list of objects matching the conditional statement. Index items must be set inside the business object "SetSearchableProperties" method, and published before results will be returned.

Namespace:  AdvantageCMS.Core.Common.Engine
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public List<T> GetPublishedObjectsBykey<T>(
	string keyName,
	eComparison comparison,
	decimal keyValue
)
where T : BusinessObject<T>, BusinessObject<T>, BusinessObject<T>, BusinessObject<T>, BusinessObject<T>, BusinessObject<T>, BusinessObject<T>

Type Parameters

T
A valid object inherited from BusinessObject

Parameters

keyName
Type: String
The name of the index item to search
comparison
Type: AdvantageCMS.Core.Common.Enums..::..eComparison
The type of comparison to execute
keyValue
Type: Decimal
The Decimal comparision value

Return Value

A list of business objects