Are there any special requirements to upgrade to version 5.12 of the OPC Data.NET product from a previous version 5.x?
Yes. Packaging changes implemented in version 5.12 of the library did include some minor code-breaking changes.
When implementing any browsing function using the EasyDAClient object through code (i.e not with the form dialog) you will need to replace any references to an IDictionary interface with a more specific collection object.
any use of the BrowseServer method will return a named type collection of ServerElementCollection instead of IDictionary
any use of BrowseBranches, BrowseNodes, or BrowseLeaves will return a named type collection of DANodeElementCollectioninstead of IDictionary.
When implementing any browsing function using the EasyAEClient object through code (i.e not with the form dialog) you will need to replace any references to an IDictionary interface with a more specific collection object.
any use of the BrowseServers method will return a named type collection of ServerElementCollection instead of IDictionary
any use of BrowseAreas or BrowseSources will return a named type collection of AENodeElementCollectioninstead of IDictionary.
When accessing the returned values of these operations it is no longer necessary to access the properties as [Object].Value.[property name], where [object] is the ServerElement, DaNodeElement, or AENodeElement object in the collection. You can now access the properties as [Object].[property name]. For example, ServerElement.Value.QualifiedName will change to ServerElement.QualifiedName.
Was this answer helpful?
Please tell us how we can make this answer more useful.
Ask a QuestionSubmit a question to our team-We'll make sure the right people answer you.
If you can't find what you're looking for on our site and would like to talk with us, you may call us on +1 704 849 2773 (Global) or 888-665-3678 (US Only).