ComInvoker 1.2.0

Invoke COM objects and automatically release com objects

Install-Package ComInvoker -Version 1.2.0
dotnet add package ComInvoker --version 1.2.0
<PackageReference Include="ComInvoker" Version="1.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ComInvoker --version 1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

ComInvoker

Release com object automatically

Build status

NuGet

ComInvoker

PM> Install-Package ComInvoker

Usage

  1. Create ComInvoker.Invoker() instance with using
  2. Create COM instance using Invoker.Invoke&lt;T&gt;(object com) method

Sample

See ComInvoker.Sample project

Auto release

using (var invoker = new ComInvoker.Invoker())
{
    //Create IE Object
    var ie = invoker.InvokeFromProgID("InternetExplorer.Application");
    //Show IE Window
    ie.Visible = true;
    //Open about:blank
    ie.Navigate("about:blank");
    //Close IE
    ie.Quit();
}//Release when disposing

Manual release

using (var invoker = new ComInvoker.Invoker())
{
    //Create IE Object
    var ie = invoker.InvokeFromProgID("InternetExplorer.Application");
    //Show IE Window
    ie.Visible = true;
    //Open about:blank
    ie.Navigate("about:blank");
    //Close IE
    ie.Quit();
    //Release manually
    invoker.Release();
}//Release when disposing(if any com object are exists)

ComInvoker

Release com object automatically

Build status

NuGet

ComInvoker

PM> Install-Package ComInvoker

Usage

  1. Create ComInvoker.Invoker() instance with using
  2. Create COM instance using Invoker.Invoke&lt;T&gt;(object com) method

Sample

See ComInvoker.Sample project

Auto release

using (var invoker = new ComInvoker.Invoker())
{
    //Create IE Object
    var ie = invoker.InvokeFromProgID("InternetExplorer.Application");
    //Show IE Window
    ie.Visible = true;
    //Open about:blank
    ie.Navigate("about:blank");
    //Close IE
    ie.Quit();
}//Release when disposing

Manual release

using (var invoker = new ComInvoker.Invoker())
{
    //Create IE Object
    var ie = invoker.InvokeFromProgID("InternetExplorer.Application");
    //Show IE Window
    ie.Visible = true;
    //Open about:blank
    ie.Navigate("about:blank");
    //Close IE
    ie.Quit();
    //Release manually
    invoker.Release();
}//Release when disposing(if any com object are exists)

Release Notes

Add InvokeFromProgID(progID) and late binding help methods.

Dependencies

This package has no dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.2.0 186 1/13/2019
1.1.0 306 1/31/2018
1.0.1 311 8/8/2017
1.0.0 323 8/6/2017