ProfileManagerBase.Search method (OrganizationProfile, String)

NOTE: This API is now obsolete.

Retrieves an array of users and organizations (as ProfileBase objects) under the specified OrganizationProfile object whose searchable properties match a specified search pattern.

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

Syntax

'Declaration
<ObsoleteAttribute("This method is no longer supported.")> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public Function Search ( _
    org As OrganizationProfile, _
    searchPattern As String _
) As ProfileBase()
'Usage
Dim instance As ProfileManagerBase
Dim org As OrganizationProfile
Dim searchPattern As String
Dim returnValue As ProfileBase()

returnValue = instance.Search(org, searchPattern)
[ObsoleteAttribute("This method is no longer supported.")]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public ProfileBase[] Search(
    OrganizationProfile org,
    string searchPattern
)

Parameters

Return value

Type: []

See also

Reference

ProfileManagerBase class

ProfileManagerBase members

Search overload

Microsoft.Office.Server.UserProfiles namespace