NETLink`
NETLink`

SafeArrayAsArray

SafeArrayAsArray

is an option to LoadCOMTypeLibrary that specifies whether to import all SAFEARRAYs as System.Array rather than a typed, single-dimensional managed array.

Details and Options

  • To use SafeArrayAsArray, you first need to load .NET/Link using Needs["NETLink`"].
  • The default is False.
  • See the .NET Framework documentation on System.Runtime.InteropServices.TypeLibImporterFlags enumeration for more details on this advanced option.