Sys.Services ProfileService properties Field

Contains the loaded profile data.

Sys.Services.ProfileService.properties.FieldName; 

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

Note 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.

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; 
Show: