ProfileServiceManager::LoadProperties Property
Gets or sets an array that contains the profile properties that will be made available to client script.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
[TypeConverterAttribute(typeof(StringArrayConverter))] public: property array<String^>^ LoadProperties { array<String^>^ get (); void set (array<String^>^ value); }
Property Value
Type: array<System::String>A string array that contains the names of the profile properties that will be preloaded and made available to client script. The default is an empty array.
| Exception | Condition |
|---|---|
| ArgumentException | The LoadProperties property includes property names that are not in the current application’s profile schema. |
If LoadProperties contains at least one string that corresponds to the name of a profile property, then the built-in profile service in the Web application retrieves the current user's profile data for each of the specified profile properties. The profile property values are serialized and then made available to client script through the Sys.Services ProfileService properties Field collection.
Note |
|---|
To set this property declaratively, use a comma-separated list of property names. For grouped property values, use the syntax GroupName.PropertyName. |
When LoadProperties is an empty array, no profile data is preloaded.
The LoadProperties property can be specified in the ScriptManager control or in an associated ScriptManagerProxy control. When LoadProperties is set on both the ScriptManager control and on one or more ScriptManagerProxy controls, the set of properties is determined by merging all the specified properties. Duplicate properties are ignored.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Note