MAPITABLE、InstanceKeys 和 Stores
我了解 MAPITABLE 存储每个人的 InstanceKey 店铺。我尝试按照网站上的示例获取此表,但是 还没有成功。
我的任务是在以下情况下将 Store 从 SortedDictionary 中的监控中删除: 调用 StoreRemove。这样的话,如果重新添加的话,就不会出现这样的情况了 抛出异常。
如何正确生成商店物品表?
非工作代码(无法确定我需要的表):
MAPITable mt = rStores.MAPITable;
Recordset rs = new Recordset();
rs = mt.ExecSQL("SELECT EntryID FROM Name");
while (!(rs.EOF))
{
Debug.Print(rs.Fields["EntryID"].Value);
rs.MoveNext();
}
I understand that the MAPITABLE stores the InstanceKey for each individual
store. I've tried following the examples off the website get this table, but
have not been successful.
My mission is to remove a Store from being monitored in a SortedDictionary when
StoreRemove is called. That way, if it is re-added, there will not be an
exception thrown.
How can i generate the table of Store items properly?
non-working code (can't determine the tables I need):
MAPITable mt = rStores.MAPITable;
Recordset rs = new Recordset();
rs = mt.ExecSQL("SELECT EntryID FROM Name");
while (!(rs.EOF))
{
Debug.Print(rs.Fields["EntryID"].Value);
rs.MoveNext();
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
本质上,您需要首先检索源密钥(以及条目 ID 等)——您尝试过 RDOStores.MAPITable.ExecSQL 吗?
Essentially you need to retrieve the source keys (along with entry ids etc.) first – have you tried RDOStores.MAPITable.ExecSQL?