public static ProfilePropertyDefinitionCollection GetPropertyDefinitionsByPortal(int portalId, bool clone) { ProfilePropertyDefinitionCollection definitions = new ProfilePropertyDefinitionCollection(); foreach (ProfilePropertyDefinition definition in GetPropertyDefinitions(portalId)) { if (clone) { definitions.Add(definition.Clone()); } else { definitions.Add(definition); } } return(definitions); }
public ProfilePropertyDefinitionCollection GetByCategory(string category) { ProfilePropertyDefinitionCollection collection = new ProfilePropertyDefinitionCollection(); foreach (ProfilePropertyDefinition profileProperty in InnerList) { if (profileProperty.PropertyCategory == category) { collection.Add(profileProperty); } } return collection; }
public static ProfilePropertyDefinitionCollection GetPropertyDefinitionsByCategory(int portalId, string category) { ProfilePropertyDefinitionCollection definitions = new ProfilePropertyDefinitionCollection(); foreach (ProfilePropertyDefinition definition in GetPropertyDefinitions(portalId)) { if (definition.PropertyCategory == category) { definitions.Add(definition); } } return(definitions); }
public ProfilePropertyDefinitionCollection GetByCategory(string category) { ProfilePropertyDefinitionCollection collection = new ProfilePropertyDefinitionCollection(); foreach (ProfilePropertyDefinition profileProperty in InnerList) { if (profileProperty.PropertyCategory == category) { collection.Add(profileProperty); } } return(collection); }
private static ProfilePropertyDefinitionCollection FillCollection(IDataReader dr) { ArrayList arrDefinitions = CBO.FillCollection(dr, typeof(ProfilePropertyDefinition)); ProfilePropertyDefinitionCollection definitionsCollection = new ProfilePropertyDefinitionCollection(); foreach (ProfilePropertyDefinition definition in arrDefinitions) { definition.ClearIsDirty(); object setting = UserModuleBase.GetSetting(definition.PortalId, "Profile_DefaultVisibility"); if (setting != null) { definition.Visibility = (UserVisibilityMode)setting; } definitionsCollection.Add(definition); } return(definitionsCollection); }