IRISReference in Native Api
I am trying to use IRIS Native API in .NET code I see following code snippet here https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls...
IRISReference valueRef = new IRISReference(""); // set inital value to null string
iris.ClassMethodString("%SomeClass","SomeMethod",valueRef);
String myString = valueRef.value; // get the method result
But IRISReference is not available as a type.
What reference (dlls) do I need to add for that? I have InterSystems.Data.IRISClient.dll , what else do I need? what am I missing here?
Assuming you use .Net Core 2.1 you need IRISProviderCore21.dll.
I just updated the native api contest template .NET sample to include an example of how this works. As Eduard said, IRISProviderCore21 has everything you might need if you're using .NET Core.
https://github.com/intersystems-community/native-api-contest-template/tr...
Thanks guys!
I am not using .Net core but .NET framework.
So after posting here, I looked around more and I found one version of InterSystems.Data.IRISClient.dll which has IRISReference
But other version does not. This is so odd.