コード例 #1
0
        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));
        }
コード例 #2
0
        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));
        }
コード例 #3
0
 public Collection <ProfilePropertyMetadata> GetPropertiesMetadata()
 {
     ApplicationServiceHelper.EnsureProfileServiceEnabled();
     return(ApplicationServiceHelper.GetProfilePropertiesMetadata());
 }