ProfileService::GetAllPropertiesForCurrentUser Method (Boolean)
Retrieves all the profile properties and values that are available to the profile service for the current user.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
public: [OperationContractAttribute] Dictionary<String^, Object^>^ GetAllPropertiesForCurrentUser( bool authenticatedUserOnly )
Parameters
- authenticatedUserOnly
-
Type:
System::Boolean
A value that indicates whether properties are returned only for users who have been authenticated.
Return Value
Type: System.Collections.Generic::Dictionary<String^, Object^>^The profile properties and values.
Use the GetAllPropertiesForCurrentUser method to retrieve all the user's profile properties through one Web service call. For example, you can call this method and then store the profile properties in the client application and retrieve values as needed. The GetAllPropertiesForCurrentUser method returns values only for the profile properties that have been configured to be accessed through a Web service. You set whether a profile property can be accessed through a Web service by setting either the ReadAccessProperties property or the WriteAccessProperties property to true.
Available since 3.5