ContactManager.BeginSearch Method (String, SearchProviders, SearchFields, SearchOptions, UInt32, AsyncCallback, Object)
Begins to search for contacts or distribution groups matching a specified search string. Results of the search are returned in the System.AsyncCallback you pass in the contactsAndGroupsCallback argument.
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
- searchString
Type: System.String
- providers
Type: Microsoft.Lync.Model.SearchProviders
- searchFields
Type: Microsoft.Lync.Model.SearchFields
- searchOptions
Type: Microsoft.Lync.Model.SearchOptions
- maxResults
Type: System.UInt32
- contactsAndGroupsCallback
Type: System.AsyncCallback
- state
Type: System.Object
Return Value
Type: System.IAsyncResult