AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

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

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,
	Guid 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: Guid
The Guid comparision value

Return Value

A list of business objects