implementing interfaces during VB to VB.NET class migration -



implementing interfaces during VB to VB.NET class migration -

i'm migrating centersnap.cls vb version vb.net , i'm confused next 2 errors after import vb6 project vs 2008.

err 1 imports system.runtime.interopservices imports esri.arcgis.esrisystem <system.runtime.interopservices.progid("stackmap.centersnap")> public class centersnap implements esri.arcgis.editor.isnapagent implements esri.arcgis.esrisystem.ipersistvariant ' <<<<error 1

error 1 class 'centersnap' must implement 'readonly property id uid' interface 'esri.arcgis.esrisystem.ipersistvariant'. implementing property must have matching 'readonly' or 'writeonly' specifiers. c:\projects\vb_activex_dll\stackmap\stackmap\centersnap.vb 9 16 stackmap

err 2 private readonly property ipersistvariant_id() esri.arcgis.esrisystem.iuid _ implements esri.arcgis.esrisystem.ipersistvariant.id '<<<< error 2

error 2 'ipersistvariant_id' cannot implement 'id' because there no matching property on interface 'esri.arcgis.esrisystem.ipersistvariant'. c:\projects\vb_activex_dll\stackmap\stackmap\centersnap.vb 16 94 stackmap

dim pid new esri.arcgis.esrisystem.uid pid.value = "centersnap.clscentersnap" ipersistvariant_id = pid end

why implements esri.arcgis.esrisystem.ipersistvariant not implementing? have esri.esrisystem referenced in project.

from looks of code, error says expecting uid property, ipersistveriant_id property returning iuid.

i'm not familiar esri.arcgis thing is, looks uid , iuid not same thing.

vb.net class vb6 arcobjects

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -