Thread: Deleted Items
View Single Post
  #5  
Old March 7th 06, 02:39 PM posted to microsoft.public.outlook.program_addins
Rog
external usenet poster
 
Posts: 62
Default Deleted Items

public static object GetPropertyHelper(object targetObject, string
propertyName)
{
try
{
return targetObject.GetType().InvokeMember(propertyName,
System.Reflection.BindingFlags.Public |
System.Reflection.BindingFlags.Instance |
System.Reflection.BindingFlags.GetProperty,
null,
targetObject,
null,
System.Globalization.CultureInfo.CurrentCulture);
}
catch(System.Exception ex)
{
GlobalConstants.Log(log, "Error", "GetPropertyHelper", ex);
return null;
}
}

and
object item =
this.OutlookApp.GetNamespace("MAPI").GetItemFromID (entryID, storeID);

Thanks so much.

Sue Mosher [MVP-Outlook] wrote:
How does GetPropertyHelper work? And how -- and when -- is Item instantiated?

Ads