public void Save(Microsoft.BizTalk.ExplorerOM.IPropertyBag propertyBag, bool clearDirty, bool saveAllProperties) { using (new DisposableObjectWrapper(new object[] { propertyBag })) { if (propertyBag == null) { throw new ArgumentNullException("propertyBag"); } object uri = this.AdapterConfiguration.Uri; propertyBag.Write("URI", ref uri); object config = this.AdapterConfiguration.Save(); propertyBag.Write("AdapterConfig", ref config); } }
public void Load(Microsoft.BizTalk.ExplorerOM.IPropertyBag propertyBag, int errorLog) { using (new DisposableObjectWrapper(new object[] { propertyBag })) { if (propertyBag == null) { throw new ArgumentNullException("propertyBag"); } object property = null; propertyBag.Read("LocationContext_Name", out property, 0); if (property != null) { title = (string)property; } propertyBag.Read("AdapterConfig", out property, 0); if (property != null) { XmlDocument document = new XmlDocument(); document.LoadXml((string)property); this.AdapterConfiguration.Load(document); } } }