ProfileService.SetPropertiesForCurrentUser Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
Parameters
- values
- IDictionary<String,Object>
A collection that contains names and values of the profile properties to set.
- authenticatedUserOnly
- Boolean
A value that indicates whether properties are set only for users who have been authenticated.
Returns
The properties that were not set for the user profile, if any.
- Attributes
Remarks
You use the SetPropertiesForCurrentUser method to set a user's profile properties from an application that is compatible with the Windows Communication Foundation (WCF). The SetPropertiesForCurrentUser method returns any values that are not set, which might be for any one of the following reasons:
The specified profile property is read only (the WriteAccessProperties property for a specified profile property is not set to
true
).The user profile does not have a profile property that has the matching name.
Validation of the value failed.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기