REM function that gets called when the network changes
Private Sub OnNetworkChange (ByVal s As Object, _
    ByVal a As Ev...
private void OnNetworkChange (Object sender, EventArgs Args)
{
    // Put network detection here
}


 public MainPage()
{
...
pesmith@microsoft.com


http://blogs.msdn.com/ncl/


http://social.msdn.microsoft.com/Forums/en
-US/ncl/threads/
Your feedback is important!
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be...
Offline Network Detection in Microsoft Silverlight 3
Offline Network Detection in Microsoft Silverlight 3
Offline Network Detection in Microsoft Silverlight 3
Offline Network Detection in Microsoft Silverlight 3
Offline Network Detection in Microsoft Silverlight 3
Offline Network Detection in Microsoft Silverlight 3
Offline Network Detection in Microsoft Silverlight 3
Offline Network Detection in Microsoft Silverlight 3
Offline Network Detection in Microsoft Silverlight 3
Offline Network Detection in Microsoft Silverlight 3
Offline Network Detection in Microsoft Silverlight 3
Offline Network Detection in Microsoft Silverlight 3
Offline Network Detection in Microsoft Silverlight 3
Offline Network Detection in Microsoft Silverlight 3
Offline Network Detection in Microsoft Silverlight 3
Offline Network Detection in Microsoft Silverlight 3
Offline Network Detection in Microsoft Silverlight 3
Offline Network Detection in Microsoft Silverlight 3
Offline Network Detection in Microsoft Silverlight 3
Upcoming SlideShare
Loading in …5
×

Offline Network Detection in Microsoft Silverlight 3

557 views

Published on

Come hear how to structure Silverlight applications to support a sometimes connected scenario, and learn how to avoid the common pitfalls of implementing network detection.

Published in: Business, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
557
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
11
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Offline Network Detection in Microsoft Silverlight 3

  1. 1. REM function that gets called when the network changes Private Sub OnNetworkChange (ByVal s As Object, _ ByVal a As EventArgs) REM Perform detection here End Sub REM set up the system to call that function Public Sub New() AddHandler NetworkInformation. _ NetworkChange.NetworkAddressChanged, _ AddressOf OnNetworkChange End Sub
  2. 2. private void OnNetworkChange (Object sender, EventArgs Args) { // Put network detection here } public MainPage() { NetworkChange.NetworkAddressChanged += new NetworkAddressChangedEventHandler (OnNetworkChange); }
  3. 3. pesmith@microsoft.com http://blogs.msdn.com/ncl/ http://social.msdn.microsoft.com/Forums/en -US/ncl/threads/
  4. 4. Your feedback is important!
  5. 5. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

×