J
John Riddle
Hello,
I've been using some sample code from Ken Slovak's site
(http://www.slovaktech.com/code_samples.htm#InspectorWrapper) to manage
inspectors in my VBA module. I'm now converting that VBA code to work as a Com
Addin using the VSTO Outlook AddIn and have run into a compile on such lines
as:
Public Property Let MailItem(objMail As Outlook.MailItem)
On Error Resume Next
Set m_objMail = objMail
m_strMailID = objMail.EntryID
m_blnMailInspector = True
End Property
that GET/SET/LET are no longer supported in .NET, please use the new syntax to
define properties. I've looked for samples, but they look MUCH different than
what this code looks like. There are several of these property definitions, if
someone could help me with one of them, I think I can apply the logic to the
rest. Does anyone know what the .NET equivalent of this definition would be?
Thanks,
John
I've been using some sample code from Ken Slovak's site
(http://www.slovaktech.com/code_samples.htm#InspectorWrapper) to manage
inspectors in my VBA module. I'm now converting that VBA code to work as a Com
Addin using the VSTO Outlook AddIn and have run into a compile on such lines
as:
Public Property Let MailItem(objMail As Outlook.MailItem)
On Error Resume Next
Set m_objMail = objMail
m_strMailID = objMail.EntryID
m_blnMailInspector = True
End Property
that GET/SET/LET are no longer supported in .NET, please use the new syntax to
define properties. I've looked for samples, but they look MUCH different than
what this code looks like. There are several of these property definitions, if
someone could help me with one of them, I think I can apply the logic to the
rest. Does anyone know what the .NET equivalent of this definition would be?
Thanks,
John