System.Web.Profile.ProfileBase.GetProfileGroup C# (CSharp) Method

GetProfileGroup() public method

public GetProfileGroup ( string groupName ) : System.Web.Profile.ProfileGroupBase
groupName string
return System.Web.Profile.ProfileGroupBase
		public ProfileGroupBase GetProfileGroup (string groupName)
		{
			ProfileGroupBase group = null;
			Type groupType = ProfileParser.GetProfileGroupType (HttpContext.Current, groupName);
			if (groupType != null)
				group = (ProfileGroupBase) Activator.CreateInstance (groupType);
			else
				throw new ProviderException ("Group '" + groupName + "' not found");

			group.Init (this, groupName);
			return group;
		}