ProfileService.SetPropertiesForCurrentUser(IDictionary<String,Object>, Boolean) Método

Definição

Define os valores das propriedades especificadas no perfil do usuário.Sets the values of the specified properties in the user profile.

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

Parâmetros

values
IDictionary<String,Object>

Uma coleção que contém os nomes e valores de propriedades de perfil a definir.A collection that contains names and values of the profile properties to set.

authenticatedUserOnly
Boolean

Um valor que indica se as propriedades são definidas apenas para usuários autenticados.A value that indicates whether properties are set only for users who have been authenticated.

Retornos

Collection<String>

As propriedades que não foram definidas para o perfil do usuário, se houver.The properties that were not set for the user profile, if any.

Atributos

Comentários

Você usa o SetPropertiesForCurrentUser método para definir as propriedades de perfil de um usuário de um aplicativo compatível com o Windows Communication Foundation (WCF).You use the SetPropertiesForCurrentUser method to set a user's profile properties from an application that is compatible with the Windows Communication Foundation (WCF). O SetPropertiesForCurrentUser método retorna qualquer valor que não esteja definido, que pode ser por qualquer um dos seguintes motivos:The SetPropertiesForCurrentUser method returns any values that are not set, which might be for any one of the following reasons:

  • A propriedade de perfil especificada é somente leitura (a WriteAccessProperties propriedade de uma propriedade de perfil especificada não está definida como true ).The specified profile property is read only (the WriteAccessProperties property for a specified profile property is not set to true).

  • O perfil do usuário não tem uma propriedade de perfil que tenha o nome correspondente.The user profile does not have a profile property that has the matching name.

  • Falha na validação do valor.Validation of the value failed.

Aplica-se a