Share via


ProfileSearchManager.Search method (String[], ProfileSearchFlags, Int32, Nullable<Boolean>)

Generic Search method that searches for profile with types specified in ProfileSearchFlags.

Namespace:  Microsoft.Office.Server.UserProfiles
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

Syntax

'Declaration
Public Function Search ( _
    searchPatterns As String(), _
    sFlags As ProfileSearchFlags, _
    nSubtypeId As Integer, _
    bDeleted As Nullable(Of Boolean) _
) As ProfileBase()
'Usage
Dim instance As ProfileSearchManager
Dim searchPatterns As String()
Dim sFlags As ProfileSearchFlags
Dim nSubtypeId As Integer
Dim bDeleted As Nullable(Of Boolean)
Dim returnValue As ProfileBase()

returnValue = instance.Search(searchPatterns, _
    sFlags, nSubtypeId, bDeleted)
public ProfileBase[] Search(
    string[] searchPatterns,
    ProfileSearchFlags sFlags,
    int nSubtypeId,
    Nullable<bool> bDeleted
)

Parameters

  • searchPatterns
    Type: []

Return value

Type: []

See also

Reference

ProfileSearchManager class

ProfileSearchManager members

Search overload

Microsoft.Office.Server.UserProfiles namespace