Export (0) Print
Expand All

SmoothStreamingException Class

Class to contain Smooth Streaming exception information.

System.Object
  System.Exception
    Microsoft.Web.Media.SmoothStreaming.SmoothStreamingException

Namespace:  Microsoft.Web.Media.SmoothStreaming
Assembly:  Microsoft.Web.Media.SmoothStreaming (in Microsoft.Web.Media.SmoothStreaming.dll)


public class SmoothStreamingException : Exception

The SmoothStreamingException type exposes the following members.

  NameDescription
Public propertySupported by Windows PhoneData (Inherited from Exception.)
Public propertySupported by Windows PhoneHelpLink (Inherited from Exception.)
Protected propertySupported by Windows PhoneHResult (Inherited from Exception.)
Public propertySupported by Windows PhoneInnerException (Inherited from Exception.)
Public propertySupported by Windows PhoneMessage (Inherited from Exception.)
Public propertySupported by Windows PhoneSource (Inherited from Exception.)
Public propertySupported by Windows PhoneStackTrace (Inherited from Exception.)
Public propertySupported by Windows PhoneTargetSite (Inherited from Exception.)
Top

  NameDescription
Public methodSupported by Windows PhoneEquals (Inherited from Object.)
Protected methodSupported by Windows PhoneFinalize (Inherited from Object.)
Public methodSupported by Windows PhoneGetBaseException (Inherited from Exception.)
Public methodSupported by Windows PhoneGetHashCode (Inherited from Object.)
Public methodSupported by Windows PhoneGetObjectData (Inherited from Exception.)
Public methodSupported by Windows PhoneGetType (Inherited from Exception.)
Protected methodSupported by Windows PhoneMemberwiseClone (Inherited from Object.)
Public methodSupported by Windows PhoneToString (Inherited from Exception.)
Top

General exception class for derived implementations. For more information, see Events.

The SmoothStreamingErrorOccurred event can be handled by assigning a delegate and writing code to process the exception.

Assign the delegate.

SmoothPlayer.SmoothStreamingErrorOccurred += 
  new EventHandler<SmoothStreamingErrorEventArgs>(SmoothPlayer_SmoothStreamingErrorOccurred);

Define the handler.

void SmoothPlayer_SmoothStreamingErrorOccurred(object sender, 
                                  SmoothStreamingErrorEventArgs e)
   {
        MessageBox.Show("Error: " + e.ErrorCode + "; " + e.ErrorMessage);
    }

This handler displays the error code and message to a text block. You can implement error-handling logic so that the application does not stop responding if an exception occurs.

Silverlight

Supported in: 5

Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft