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.UserSearchCondition)

Returns the array of UserData based on the criteria UserSearchCondition.

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

Array of UserData

Dim isMemberShip As UserSearchCondition = New UserSearchCondition
isMemberShip.setType = SearchType.EQUAL
isMemberShip.setValue = 1 'The value can be integer,string,date and boolean should be match with db type
isMemberShip.setVariable = users.membership_user
 
Dim isInEktron As UserSearchCondition = New UserSearchCondition
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 UserSearchCondition = New UserSearchCondition
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!