Rock.Web.UI.Controls.LocationPicker.SaveViewState C# (CSharp) Method

SaveViewState() protected method

Saves any state that was modified after the M:System.Web.UI.WebControls.Style.TrackViewState method was invoked.
protected SaveViewState ( ) : object
return object
        protected override object SaveViewState()
        {
            ViewState["CurrentPickerMode"] = this.CurrentPickerMode;

            var location = this.Location;
            if ( location != null )
            {
                ViewState["LocationId"] = location.Id;
            }

            return base.SaveViewState();
        }