我在VSTO中创建了加载项,这是有问题的,您能为我提供帮助吗?问题是我在约会中创建了单独的区域,在其中添加了两个下拉列表,并且我想在该区域发送所选的下拉值接收器端,我也在该系统上安装了此插件,但下拉值没有得到我在此处选择的值。你能帮我吗#VSTO,#csharp我正在使用Outlook 16和VSTO插件。
我同时在UserProperty和Header aslo中都添加了Property,它保存了本地,但是最后却没有显示。
**private void ItemSend_Send(object Item, ref bool Cancel)
{
try
{
Outlook.UserProperty _activityTrackertyoe = app_Item.UserProperties.Add("ActivityTrackerType", Outlook.OlUserPropertyType.olText,true, 1);
_activityTrackertyoe.Value = ActivityTrackerType.Text;
Outlook.UserProperty _subType = app_Item.UserProperties.Add("ActivityTrackerSubType", Outlook.OlUserPropertyType.olText,true, 1);
_subType.Value = ActivityTrackerSubType.Text;
app_Item.Body = ActivityTrackerType.Text + "<<<->>>>" + ActivityTrackerSubType.Text;
app_Item.PropertyAccessor.SetProperty("http://schemas.microsoft.com/mapi/string/{00020386-0000-0000-C000-000000000046}/X-{ActivityTrackerType}", ActivityTrackerType.Text);
app_Item.PropertyAccessor.SetProperty("http://schemas.microsoft.com/mapi/string/{00020386-0000-0000-C000-000000000046}/X-{ActivityTrackerSubType}",
ActivityTrackerSubType.Text);
app_Item.Save();
app_Item.Display();
app_Item.Send();
MessageBox.Show("Sent"+ _activityTrackertyoe.Value+"sub"+ _subType.Value);
}
catch (Exception)
{
throw;
}
}**
它发送但不与UserPropery一起发送
您不是