You are here: Ektron Namespace > .NET Assemblies > Ektron.Cms.API Namespace > Ektron.Cms.API.Search Namespace > Classes > SearchManager Class > SearchManager Methods > Execute Method > Execute
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
SearchManager.Execute Method (Ektron.Cms.ContentSearchCondition)

Returns the array of ContentData based on the criteria ContentSearchCondition.

C#
public Overridable ContentData[] Execute(Ektron.Cms.ContentSearchCondition condition);
Visual Basic
Public Overridable Function Execute(ByVal condition As Ektron.Cms.ContentSearchCondition) As ContentData()
Parameters 
Description 
condition 
ContentSearchCondition 

Array of ContentData

Dim isContentLanguage As ContentSearchCondition = New ContentSearchCondition
isContentLanguage.setType = SearchType.EQUAL
isContentLanguage.setValue = 1033 'The value can be integer,string,date and boolean should be match with db type
isContentLanguage.setVariable = content.content_language
 
Dim isInEktron As ContentSearchCondition = New ContentSearchCondition
isInEktron.setType = SearchType.EQUAL
isInEktron.setValue = "03031"  'The value can be integer,string,date and boolean should be match with dynamic_data_tbl labels type
isInEktron.setVariable = "customproperties.zip code"
 
Dim condition As ContentSearchCondition = New ContentSearchCondition
condition.setType = SearchType.AND
condition.AddCondition(isInEktron)
condition.AddCondition(isMemberShip)
 
Dim search As New SearchManager
Dim result As userdata() = search.Execute(condition)
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!