Bewerken

Delen via


ProfileService.GetAllPropertiesForCurrentUser(Boolean) Method

Definition

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

public:
 System::Collections::Generic::Dictionary<System::String ^, System::Object ^> ^ GetAllPropertiesForCurrentUser(bool authenticatedUserOnly);
[System.ServiceModel.OperationContract]
public System.Collections.Generic.Dictionary<string,object> GetAllPropertiesForCurrentUser (bool authenticatedUserOnly);
[<System.ServiceModel.OperationContract>]
member this.GetAllPropertiesForCurrentUser : bool -> System.Collections.Generic.Dictionary<string, obj>
Public Function GetAllPropertiesForCurrentUser (authenticatedUserOnly As Boolean) As Dictionary(Of String, Object)

Parameters

authenticatedUserOnly
Boolean

A value that indicates whether properties are returned only for users who have been authenticated.

Returns

The profile properties and values.

Attributes

Remarks

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.

Applies to