ContactManager.BeginSearch method (String, SearchProviders, SearchFields, SearchOptions, UInt32, AsyncCallback, Object)

Searches for contacts and distribution groups that match the given search criteria.

Namespace:  Microsoft.Lync.Model
Assembly:  Microsoft.Lync.Model (in Microsoft.Lync.Model.dll)

Syntax

'Declaration
Public Function BeginSearch ( _
    searchString As String, _
    providers As SearchProviders, _
    searchFields As SearchFields, _
    searchOptions As SearchOptions, _
    maxResults As UInteger, _
    contactsAndGroupsCallback As AsyncCallback, _
    state As Object _
) As IAsyncResult
'Usage
Dim instance As ContactManager
Dim searchString As String
Dim providers As SearchProviders
Dim searchFields As SearchFields
Dim searchOptions As SearchOptions
Dim maxResults As UInteger
Dim contactsAndGroupsCallback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult

returnValue = instance.BeginSearch(searchString, _
    providers, searchFields, searchOptions, _
    maxResults, contactsAndGroupsCallback, _
    state)
public IAsyncResult BeginSearch(
    string searchString,
    SearchProviders providers,
    SearchFields searchFields,
    SearchOptions searchOptions,
    uint maxResults,
    AsyncCallback contactsAndGroupsCallback,
    Object state
)

Parameters

Return value

Type: System.IAsyncResult

See also

Reference

ContactManager class

ContactManager members

BeginSearch overload

Microsoft.Lync.Model namespace