C#Mobile短信截取且不让收信箱跟手机提示收到该短信

Zeroing-X 2009-11-07 11:28:54
C#Mobile短信截取且不让收信箱跟手机提示收到该短信
我想做一个程序截取短信,然后读短信里面的内容..如果内容为:1 则阻止收信箱手到该短信并让手机不提示收到短信......
也就是我收到的短信内容如果是:1则把他丢弃...
如果是其他内容则不丢弃...照常显示


好象可以在截取短信的同时设置截取条件....
MessageInterceptor msgInterceptor = new MessageInterceptor();
msgInterceptor.InterceptionAction = InterceptionAction.NotifyAndDelete;
MessageCondition msgCondition = new MessageCondition();
msgCondition.ComparisonType = MessagePropertyComparisonType.Contains;
msgCondition.Property = MessageProperty.Sender;

msgInterceptor.MessageCondition = msgCondition;
msgInterceptor.MessageReceived += new MessageInterceptorEventHandler(msgInterceptor_MessageReceived);

但是有点不明白....我要设置消息主体的是1而不是消息的发送者....怎么设置
...全文
105 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

7,655

社区成员

发帖
与我相关
我的任务
社区描述
Windows Phone是微软发布的一款手机操作系统,它将微软旗下的Xbox LIVE游戏、Zune音乐与独特的视频体验整合至手机中。
社区管理员
  • Windows客户端开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧