简体   繁体   中英

ProgID of the outlook addin created using VSTO c#

I am developing an addin for outlook. There I created a new form region to the appointment. To register the Form region I want to get the ProgID of my addin. I want to know where can i find the ProgID of my Addin?

Thanx

Assuming you have access to the Outlook application object, you can use code below to get ProgId:

 COMAddIns comAddIns = application.COMAddIns;

                foreach (COMAddIn addin in comAddIns)
                {
                    if (string.Equals(addin.Description, "YOUR ADDIN NAME", StringComparison.OrdinalIgnoreCase))
                    {
                        return addin.ProgId;
                    }
                }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM