SmoothStreamingException Class

Class to contain Smooth Streaming exception information.

Inheritance Hierarchy

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)

Syntax

'Declaration

Public Class SmoothStreamingException _
    Inherits Exception
'Usage

Dim instance As SmoothStreamingException
public class SmoothStreamingException : Exception
public ref class SmoothStreamingException : public Exception
type SmoothStreamingException =  
    class
        inherit Exception
    end
public class SmoothStreamingException extends Exception

The SmoothStreamingException type exposes the following members.

Properties

  Name Description
Public propertySupported by Windows Phone Data (Inherited from Exception.)
Public propertySupported by Windows Phone HelpLink (Inherited from Exception.)
Protected propertySupported by Windows Phone HResult (Inherited from Exception.)
Public propertySupported by Windows Phone InnerException (Inherited from Exception.)
Public propertySupported by Windows Phone Message (Inherited from Exception.)
Public propertySupported by Windows Phone Source (Inherited from Exception.)
Public propertySupported by Windows Phone StackTrace (Inherited from Exception.)
Public propertySupported by Windows Phone TargetSite (Inherited from Exception.)

Top

Methods

  Name Description
Public methodSupported by Windows Phone Equals (Inherited from Object.)
Protected methodSupported by Windows Phone Finalize (Inherited from Object.)
Public methodSupported by Windows Phone GetBaseException (Inherited from Exception.)
Public methodSupported by Windows Phone GetHashCode (Inherited from Object.)
Public methodSupported by Windows Phone GetObjectData (Inherited from Exception.)
Public methodSupported by Windows Phone GetType (Inherited from Exception.)
Protected methodSupported by Windows Phone MemberwiseClone (Inherited from Object.)
Public methodSupported by Windows Phone ToString (Inherited from Exception.)

Top

Remarks

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

Examples

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.

Version Information

Silverlight

Supported in: 5

Windows Phone

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

Thread Safety

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

See Also

Reference

Microsoft.Web.Media.SmoothStreaming Namespace