ProfileService::GetAllPropertiesForCurrentUser Method
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)
[OperationContractAttribute] public: 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.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.