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

GetPropertyValue() public method

public GetPropertyValue ( string propertyName ) : object
propertyName string
return object
		public object GetPropertyValue (string propertyName)
		{
			if (!_propertiyValuesLoaded)
				InitPropertiesValues ();

			_lastActivityDate = DateTime.UtcNow;

			return ((SettingsPropertyValue) _propertiyValues [propertyName]).PropertyValue;
		}

Usage Example

 protected void Page_Load(object sender, EventArgs e)
 {
     Username = User.Identity.Name;
     Master.ParentModulelbl.Text = "Bounce Settings";
     objProfileBase = ProfileBase.Create(Username, true);
     if (!IsPostBack)
     {
         lblMsg.Text = string.Empty;
         txtHardbounce.Text = objProfileBase.GetPropertyValue("HBounce").ToString();
         txtSoftbounce.Text = objProfileBase.GetPropertyValue("SBounce").ToString();
     }
 }
All Usage Examples Of System.Web.Profile.ProfileBase::GetPropertyValue