Condividi tramite


Sys.Services ProfileService properties Field

Contains the loaded profile data.

Sys.Services.ProfileService.properties.FieldName; 

Remarks

You can access the loaded profile data directly from the properties field.

Note

An element in the properties field can be a property group of type ProfileGroup. If it is, the related properties appear as sub-properties. For more information, see Sys.Services.ProfileGroup Class.

Example

The following example shows how to use the properties field to access the currently authenticated user's profile data. This code is part of a complete example found in the Sys.Services.ProfileService class overview.

  Sys.Services.ProfileService.properties.Backgroundcolor = 
        GetElementById("bgcolor").value;
    
    Sys.Services.ProfileService.properties.Foregroundcolor =
        GetElementById("fgcolor").value; 

See Also

Concepts

Sys.Services.AuthenticationService Class

Sys.Net.WebServiceProxy Class