Simon Mourier's Avatar
Simon Mourier's blog (1807 answers on StackOverflow) about Microsoft technologies C#, C/C++, .NET, WinRT, WinUI3, AOT, P/Invoke, COM, Interop, DirectX, Direct2D, Windows, ...
  • 🔎︎ Search
  • Categories
  • Archives
  • About Me
  • algorithms
  • asp
  • c#
  • com

How to pass a Classic ASP Scripting.Dictionary to a C# COM Class Library?

Jul 28, 2014 See the question and my original answer on StackOverflow

The following should work (you need to reference the "Microsoft Scripting Runtime" COM object of course):

    public byte[] GetReport(int Report_Type_Requested, object Report_Params)
    {
        Scripting.Dictionary dic = (Scripting.Dictionary)Report_Params;
        foreach (string key in dic)
        {
            object value = dic.get_Item(key);
        }
        ...
    }
  • SmoBlog © 2010-2026 Simon Mourier. All rights reserved.
  • Privacy & Terms