Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Framework / System / Windows / Controls / ExceptionRoutedEventArgs.cs / 1 / ExceptionRoutedEventArgs.cs
//------------------------------------------------------------------------------
// Microsoft Avalon
// Copyright (c) Microsoft Corporation, 2003
//
// File: ExceptionRoutedEventArgs.cs
//
//-----------------------------------------------------------------------------
using System;
namespace System.Windows
{
#region ExceptionRoutedEventArgs
///
/// Holds the error event arguments for media failed events from a MediaElement.
/// Since other MediaFailed events from the MediaClock or MediaTimeline are not
/// routed events, this is separated out into a different class.
///
public sealed class ExceptionRoutedEventArgs : RoutedEventArgs
{
internal
ExceptionRoutedEventArgs(
RoutedEvent routedEvent,
object sender,
Exception errorException
) : base(routedEvent, sender)
{
if (errorException == null)
{
throw new ArgumentNullException("errorException");
}
_errorException = errorException;
}
///
/// The exception that describes the media failure.
///
public Exception ErrorException
{
get
{
return _errorException;
}
}
private Exception _errorException;
};
#endregion
} // namespace System.Windows
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------------------------
// Microsoft Avalon
// Copyright (c) Microsoft Corporation, 2003
//
// File: ExceptionRoutedEventArgs.cs
//
//-----------------------------------------------------------------------------
using System;
namespace System.Windows
{
#region ExceptionRoutedEventArgs
///
/// Holds the error event arguments for media failed events from a MediaElement.
/// Since other MediaFailed events from the MediaClock or MediaTimeline are not
/// routed events, this is separated out into a different class.
///
public sealed class ExceptionRoutedEventArgs : RoutedEventArgs
{
internal
ExceptionRoutedEventArgs(
RoutedEvent routedEvent,
object sender,
Exception errorException
) : base(routedEvent, sender)
{
if (errorException == null)
{
throw new ArgumentNullException("errorException");
}
_errorException = errorException;
}
///
/// The exception that describes the media failure.
///
public Exception ErrorException
{
get
{
return _errorException;
}
}
private Exception _errorException;
};
#endregion
} // namespace System.Windows
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MSAAWinEventWrap.cs
- GroupBox.cs
- XmlSerializerSection.cs
- Bold.cs
- PermissionRequestEvidence.cs
- _AutoWebProxyScriptEngine.cs
- StorageMappingItemLoader.cs
- QualifierSet.cs
- BindingsCollection.cs
- TextTreeInsertUndoUnit.cs
- DiscoveryDocumentSerializer.cs
- HitTestWithGeometryDrawingContextWalker.cs
- MouseGestureConverter.cs
- LinqDataSource.cs
- DataServiceResponse.cs
- ScrollViewer.cs
- DSACryptoServiceProvider.cs
- SurrogateSelector.cs
- XmlWrappingReader.cs
- HierarchicalDataBoundControlAdapter.cs
- WindowsIPAddress.cs
- UIPermission.cs
- OdbcRowUpdatingEvent.cs
- ApplicationHost.cs
- DbSourceParameterCollection.cs
- UserControl.cs
- TreeChangeInfo.cs
- CodeSnippetCompileUnit.cs
- DocumentOrderQuery.cs
- ListViewGroupConverter.cs
- GridViewUpdateEventArgs.cs
- SecurityDocument.cs
- TCEAdapterGenerator.cs
- Italic.cs
- ListViewItemMouseHoverEvent.cs
- ResolveCompletedEventArgs.cs
- FontInfo.cs
- PlaceHolder.cs
- ThreadStateException.cs
- ErrorProvider.cs
- Localizer.cs
- FixedPage.cs
- Compensation.cs
- BitmapData.cs
- EventEntry.cs
- XPathItem.cs
- DecimalConstantAttribute.cs
- CustomError.cs
- Rect3D.cs
- SqlTypesSchemaImporter.cs
- CqlLexerHelpers.cs
- TextContainer.cs
- MatrixConverter.cs
- HtmlElementErrorEventArgs.cs
- DirectoryGroupQuery.cs
- StringOutput.cs
- EntityDataSourceContextDisposingEventArgs.cs
- ToolstripProfessionalRenderer.cs
- Regex.cs
- ClientUriBehavior.cs
- UserNameSecurityTokenAuthenticator.cs
- MTConfigUtil.cs
- BitmapPalettes.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- WebPartDeleteVerb.cs
- RenderDataDrawingContext.cs
- DropTarget.cs
- BinHexEncoder.cs
- OleDbCommandBuilder.cs
- MediaElementAutomationPeer.cs
- AnonymousIdentificationSection.cs
- SoapAttributes.cs
- RC2CryptoServiceProvider.cs
- DynamicObjectAccessor.cs
- CounterCreationData.cs
- HandlerFactoryCache.cs
- DataSourceHelper.cs
- FormView.cs
- DataServiceExpressionVisitor.cs
- DrawingContext.cs
- UrlMappingCollection.cs
- EntitySqlQueryBuilder.cs
- LexicalChunk.cs
- PathSegmentCollection.cs
- XamlTypeMapper.cs
- PropertyMetadata.cs
- DayRenderEvent.cs
- TableLayoutPanelDesigner.cs
- CheckPair.cs
- _AutoWebProxyScriptWrapper.cs
- SmtpSection.cs
- ISCIIEncoding.cs
- ObjectViewListener.cs
- FixedSOMTable.cs
- ConfigurationPropertyCollection.cs
- ObjectPropertyMapping.cs
- ResumeStoryboard.cs
- BinHexEncoder.cs
- Select.cs
- DataServiceBehavior.cs