private PropertyStore(PropertyStoreInterop.IPropertyStore propertyStore) { m_IPropertyStore = propertyStore; #if !RAW_PROPERTY_STORE m_contentType = GetValue(s_pkContentType) as string; #endif }
private void Dispose(bool disposing) { if (m_IPropertyStore != null) { if (!disposing) { Debug.Fail("Failed to dispose PropertyStore"); } Marshal.FinalReleaseComObject(m_IPropertyStore); m_IPropertyStore = null; } if (m_IPropertyStoreCapabilities != null) { Marshal.FinalReleaseComObject(m_IPropertyStoreCapabilities); m_IPropertyStoreCapabilities = null; } if (disposing) { GC.SuppressFinalize(this); } }