ProfileService.GetPropertiesForCurrentUser Method
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.
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)
- 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.
The profile property information and values.
- Attributes
The properties
parameter or an item in the properties
collection is null
.
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
.
Продукт | Версии |
---|---|
.NET Framework | 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Обратна връзка за .NET
.NET е проект с отворен код. Изберете връзка, за да предоставите обратна връзка: