public Collection <string> SetPropertiesForCurrentUser(IDictionary <string, object> values, bool authenticatedUserOnly)
        {
            ApplicationServiceHelper.EnsureProfileServiceEnabled();

            HttpContext context = HttpContext.Current;

            if (authenticatedUserOnly)
            {
                ApplicationServiceHelper.EnsureAuthenticated(context);
            }

            return(ProfileService.SetProfile(context, values));
        }
        public Dictionary <string, object> GetPropertiesForCurrentUser(IEnumerable <string> properties, bool authenticatedUserOnly)
        {
            ApplicationServiceHelper.EnsureProfileServiceEnabled();

            HttpContext context = HttpContext.Current;

            if (authenticatedUserOnly)
            {
                ApplicationServiceHelper.EnsureAuthenticated(context);
            }

            return(ProfileService.GetProfile(context, properties));
        }
 public Collection <ProfilePropertyMetadata> GetPropertiesMetadata()
 {
     ApplicationServiceHelper.EnsureProfileServiceEnabled();
     return(ApplicationServiceHelper.GetProfilePropertiesMetadata());
 }