ProfileService.SetPropertiesForCurrentUser メソッド

定義

ユーザー プロファイルの指定されたプロパティに値を設定します。

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)

パラメーター

values
IDictionary<String,Object>

設定するプロファイル プロパティの名前と値を含むコレクション。

authenticatedUserOnly
Boolean

認証済みのユーザーの場合にのみプロパティを設定するかどうかを示す値。

戻り値

ユーザー プロファイルに設定されなかったプロパティがあれば、そのプロパティ。

属性

注釈

メソッドを SetPropertiesForCurrentUser 使用して、Windows Communication Foundation (WCF) と互換性のあるアプリケーションからユーザーのプロファイル プロパティを設定します。 メソッドは SetPropertiesForCurrentUser 、設定されていない値を返します。これは、次のいずれかの理由で発生する可能性があります。

  • 指定したプロファイル プロパティは読み取り専用です ( WriteAccessProperties 指定したプロファイル プロパティのプロパティが に true設定されていません)。

  • ユーザー プロファイルには、一致する名前を持つプロファイル プロパティがありません。

  • 値の検証に失敗しました。

適用対象