locked
Access C# API in PS RRS feed

  • Question

  • I downloaded a C# API package and installed it in C:\QuestradeAPI\CSharp folder, which has the following files:

    samples
    EULA.pdf
    QuestradeAPI.Net.dll
    QuestradeAPI.Net.tlb
    ReadMe.txt
    unins000.dat
    unins000.exe

    As the instruction, I run the below successfully.

    C:\windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe /codebase /tlb QuestradeAPI.Net.dll

    And also there are *.cs files (text) under samples folder.

    I need to call these API functions in PS scripts but not sure how to Add-Type in ? Thanks.

    Tuesday, February 26, 2019 10:28 PM

All replies

  • It looks like a COM library.  You need to register it and load as COM. If installed it may be registered.  Contact vendor for documentation.  The CS will give examples.


    \_(ツ)_/


    • Edited by jrv Tuesday, February 26, 2019 10:32 PM
    Tuesday, February 26, 2019 10:31 PM
  • Hi,

    Was your issue resolved?

    If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.

    If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.

    If no, please reply and tell us the current situation in order to provide further help.

    Best Regards,

    Lee


    Just do it.

    Friday, March 1, 2019 6:10 AM