Carrotware.CMS.Core.CMSConfigHelper.GetSerialized C# (CSharp) Method

GetSerialized() public static method

public static GetSerialized ( System.Guid itemID, string sKey ) : string
itemID System.Guid
sKey string
return string
        public static string GetSerialized(Guid itemID, string sKey)
        {
            string sData = String.Empty;
            using (CarrotCMSDataContext _db = CarrotCMSDataContext.Create()) {
                carrot_SerialCache itm = CompiledQueries.SearchSeriaCache(_db, itemID, sKey);

                if (itm != null) {
                    sData = itm.SerializedData;
                }
            }

            return sData;
        }

Same methods

CMSConfigHelper::GetSerialized ( string sKey ) : string

Usage Example

Example #1
0
        private string GetSerialized(string sKey)
        {
            string sData = String.Empty;

            LoadGuids();

            if (filePage != null)
            {
                sData = CMSConfigHelper.GetSerialized(filePage.Root_ContentID, sKey);
            }
            return(sData);
        }
All Usage Examples Of Carrotware.CMS.Core.CMSConfigHelper::GetSerialized