Table of Contents

Method PrepareSearchPaging

Namespace
Skyline.DataMiner.Net.Jobs
Assembly
SLNetTypes.dll

PrepareSearchPaging(string, long, FilterElement<Job>)

Allows searching jobs using the specified query and filter in a paged manner.

public PagingHelper<Job> PrepareSearchPaging(string query, long preferredPageSize, FilterElement<Job> filter)

Parameters

query string

The query.

preferredPageSize long

The preferred page size.

filter FilterElement<Job>

The filter elements.

Returns

PagingHelper<Job>

The paging helper instance.

Examples

JobManagerHelper jobManagerHelper = new JobManagerHelper(msg => protocol.SLNet.RawConnection.HandleMessages(msg));

var searchPaging = jobManagerHelper.Jobs.PrepareSearchPaging("myQuery", 1, JobExposers.FieldValues.JobField(DefaultJobSectionDefinition.NameFieldDescriptorID).Contains("myNameFilter"));

Remarks

  • The query must be at least 3 characters long.
  • Only fields of type "string" will be used to test the query against.

PrepareSearchPaging(string, long, IQuery<Job>)

Allows searching jobs using the specified query and filter in a paged manner.

public PagingHelper<Job> PrepareSearchPaging(string query, long preferredPageSize, IQuery<Job> filter)

Parameters

query string

The query.

preferredPageSize long

The preferred page size.

filter IQuery<Job>

The filter.

Returns

PagingHelper<Job>

The paging helper instance.