|
[VB.NET] | |
Sub Release
(NotificationID As String)
|
|
NotificationID |
Notification ID |
VB.NET
Example |
Switch to language:
[C#] |
|
| 'Create personalizer object and Session object |
| Dim pers As New PersonalizerRef.Personalizer()
|
| Dim sess As New SessionRef.Session()
|
| Dim SessionID As
String = "" |
| Try |
| SessionID = pers.CreateSession("LogonName", "Password") |
| 'Create MSN notification |
| Dim objMSN As New MSNRef.MSN()
|
| 'Create server notification object |
| MSNNotifID = sess.CreateMSNNotification(SessionID) |
| objMSN.Logon(MSNNotifID, "012345", "Password") |
| objMSN.Send(MSNNotifID, "target@hotmail.com", "This is MSN Notification Message") |
| objMSN.Disconnect(MSNNotifID) |
| objMSN.Release(MSNNotifID) |
| sess.Release(SessionID) |
| Catch e As Exception |
| 'Print exception message e.Message |
| sess.Release(SessionID) |
| End Try |