Export (0) Print
Expand All

SmoothStreamingErrorEventArgs Class

Class to pass error event information about a Smooth Streaming operation.

System..::..Object
  System..::..EventArgs
    Microsoft.Web.Media.SmoothStreaming..::..SmoothStreamingErrorEventArgs

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

public class SmoothStreamingErrorEventArgs : EventArgs

The SmoothStreamingErrorEventArgs type exposes the following members.

  NameDescription
Public propertySupported by Silverlight for Windows PhoneErrorCodeGets or sets the ErrorCode property.
Public propertySupported by Silverlight for Windows PhoneErrorExceptionGets or sets the ErrorException property.
Public propertySupported by Silverlight for Windows PhoneErrorMessageGets or sets the ErrorMessage property.
Top

  NameDescription
Public methodSupported by Silverlight for Windows PhoneEquals (Inherited from Object.)
Protected methodSupported by Silverlight for Windows PhoneFinalize (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneGetHashCode (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneGetType (Inherited from Object.)
Protected methodSupported by Silverlight for Windows PhoneMemberwiseClone (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneToString (Inherited from Object.)
Top

For more information, see Events (IIS Smooth Streaming).

The SmoothStreamingErrorOccurred event can be handled by assigning a delegate and by writing the 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 hang if an exception occurs.

Silverlight

Supported in: 4

Silverlight for Windows Phone

Supported in: 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