Bewerken

Delen via


ProfileService.GetPropertiesForCurrentUser Method

Definition

Retrieves the specified profile properties and values for the current user.

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

Parameters

properties
IEnumerable<String>

A collection of string values that contains the names of the profile properties to retrieve.

authenticatedUserOnly
Boolean

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

Returns

The profile property information and values.

Attributes

Exceptions

The properties parameter or an item in the properties collection is null.

Remarks

To get specific profile property values for the current users, you use the GetPropertiesForCurrentUser method to specify which profile properties are retrieved. The GetPropertiesForCurrentUser method returns values only for profile properties that are configured for access through a Web service. You configure a profile property for access through a Web service by setting the ReadAccessProperties property or WriteAccessProperties property to true.

Applies to