Share via


UserProfileService.GetUserProfileCount Method

Gets the total number of user profiles.

Namespace:  [UserProfileService Web service]
Web service reference: http://Site/_vti_bin/UserProfileService.asmx

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

UserProfileService Web Service