UserProfileService.GetUserProfileCount method

Gets the total number of user profiles.

Namespace:  WebSvcUserProfileService
Assembly:  UserProfileServices (in UserProfileServices.dll)

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/UserProfileService/GetUserProfileCount", RequestNamespace := "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService",  _
    ResponseNamespace := "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function GetUserProfileCount As Long
'Usage
Dim instance As UserProfileService
Dim returnValue As Long

returnValue = instance.GetUserProfileCount()
[SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/UserProfileService/GetUserProfileCount", RequestNamespace = "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
    ResponseNamespace = "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public long GetUserProfileCount()

Return value

Type: System.Int64
The total number of user profiles.

Exceptions

Exception Condition
SoapException

The number of user profiles cannot be retrieved.

Remarks

This method returns the total number of user profiles in the profile database.

See also

Reference

UserProfileService class

UserProfileService members

WebSvcUserProfileService namespace