共用方式為


ProfileManagerBase.Search Method (OrganizationProfile, String )

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

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

Syntax

'Declaration
<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)
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public ProfileBase[] Search(
    OrganizationProfile org,
    string[] searchPattern
)

Parameters

  • searchPattern
    Type: []

Return Value

Type: []

See Also

Reference

ProfileManagerBase Class

ProfileManagerBase Members

Search Overload

Microsoft.Office.Server.UserProfiles Namespace