protected override void InternalSetValue(PropertyBag.BasicPropertyStore propertyBag, object value) { string folderHomePageUrl = (string)value; byte[] propertyValue = FolderHomePageUrlProperty.CreateWebViewInformation(folderHomePageUrl); propertyBag.SetValueWithFixup(InternalSchema.FolderWebViewInfo, propertyValue); }
protected override object InternalTryGetValue(PropertyBag.BasicPropertyStore propertyBag) { object value = propertyBag.GetValue(InternalSchema.FolderWebViewInfo); if (PropertyError.IsPropertyNotFound(value)) { return(value); } byte[] webViewInfo = PropertyBag.CheckPropertyValue <byte[]>(InternalSchema.FolderWebViewInfo, value); object result; try { result = FolderHomePageUrlProperty.GetUrlFromWebViewInfo(webViewInfo); } catch (CorruptDataException ex) { result = new PropertyError(this, PropertyErrorCode.CorruptedData, ex.Message); } return(result); }