Export (0) Print
Expand All

ProfileService.GetAllPropertiesForCurrentUser Method

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)

[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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5
Show:
© 2015 Microsoft