ProfileService.GetAllPropertiesForCurrentUser Method (Boolean)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Retrieves all the profile properties and values that are available to the profile service for the current user.

Namespace:   System.Web.ApplicationServices
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public Dictionary<string, object> GetAllPropertiesForCurrentUser(
	bool 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.

.NET Framework
Available since 3.5
Return to top