ComInvoker 1.2.0

dotnet add package ComInvoker --version 1.2.0
NuGet\Install-Package ComInvoker -Version 1.2.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<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
#r "nuget: ComInvoker, 1.2.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ComInvoker as a Cake Addin
#addin nuget:?package=ComInvoker&version=1.2.0

// Install ComInvoker as a Cake Tool
#tool nuget:?package=ComInvoker&version=1.2.0

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<T>(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)
Product Compatible and additional computed target framework versions.
.NET Framework net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.0 841 1/13/2019
1.1.0 987 1/31/2018
1.0.1 1,044 8/8/2017
1.0.0 988 8/6/2017

Add InvokeFromProgID(progID) and late binding help methods.