关于SMS短信截获中vb.net与C#转换的一些异常
用C#编写的话:
SMSCatcher = new MessageInterceptor();
SMSCatcher.InterceptionAction = InterceptionAction.Notify;
SMSCatcher.MessageReceived += new MessageInterceptorEventHandler(SMSCatcher _MessageReceived);
可以调用SMSCatcher _MessageReceived函数来获取短信内容,并且无论来多少条短信都可以截获,但转换为VB.NET后:
Dim SMSCatcher As New MessageInterceptor(InterceptionAction.NotifyAndDelete, True)
SMSCatcher = New MessageInterceptor
AddHandler SMSCatcher.MessageReceived, AddressOf Me.SMSCatcher_MessageReceived
却只能截获第一条短信的内容,之后的短信内容无法截获,请问是不是因为没有使用MessageInterceptorEventHandler,而导致只能调用一次呢?请问以上的C#语句如何转换为VB.NET?
多谢高人指点~