Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Controls / ExceptionRoutedEventArgs.cs / 1305600 / 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
- XNodeNavigator.cs
- Color.cs
- SecurityRuntime.cs
- Repeater.cs
- GridViewDeletedEventArgs.cs
- HttpModule.cs
- ClosableStream.cs
- DataViewManagerListItemTypeDescriptor.cs
- WebBrowserNavigatedEventHandler.cs
- DataObjectAttribute.cs
- UidManager.cs
- DSASignatureDeformatter.cs
- DefaultHttpHandler.cs
- OdbcPermission.cs
- InheritedPropertyChangedEventArgs.cs
- DrawingServices.cs
- ViewEvent.cs
- ErrorsHelper.cs
- Walker.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- OperatingSystem.cs
- CatalogPartCollection.cs
- RectangleF.cs
- ProxyFragment.cs
- BitmapCache.cs
- ConfigDefinitionUpdates.cs
- DataControlButton.cs
- Attributes.cs
- ZipIOCentralDirectoryBlock.cs
- DbDataRecord.cs
- Int32RectConverter.cs
- ProgressiveCrcCalculatingStream.cs
- BinaryOperationBinder.cs
- PropertyKey.cs
- XmlAttributes.cs
- XappLauncher.cs
- AnonymousIdentificationSection.cs
- ScriptControlDescriptor.cs
- SecurityKeyUsage.cs
- IsolatedStorageException.cs
- BinHexDecoder.cs
- Color.cs
- CodeDirectoryCompiler.cs
- SqlMethodTransformer.cs
- FileStream.cs
- DeferrableContentConverter.cs
- PageThemeBuildProvider.cs
- XmlBoundElement.cs
- ClientScriptItem.cs
- ModelService.cs
- ConfigXmlAttribute.cs
- StringArrayEditor.cs
- XsltOutput.cs
- GetPageNumberCompletedEventArgs.cs
- FileAuthorizationModule.cs
- MetaChildrenColumn.cs
- DetailsViewRowCollection.cs
- DelegateSerializationHolder.cs
- EnumerableRowCollectionExtensions.cs
- NamespaceList.cs
- PerspectiveCamera.cs
- ExtensibleClassFactory.cs
- SqlIdentifier.cs
- XmlMtomWriter.cs
- Application.cs
- TextTreeTextNode.cs
- RadioButtonRenderer.cs
- _BaseOverlappedAsyncResult.cs
- SharedStatics.cs
- EncoderFallback.cs
- PropertyGroupDescription.cs
- SessionMode.cs
- CancelEventArgs.cs
- BitmapImage.cs
- SHA384.cs
- DataProviderNameConverter.cs
- RealProxy.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- FilePresentation.cs
- QilPatternVisitor.cs
- SetterBase.cs
- DataControlLinkButton.cs
- ProfilePropertySettingsCollection.cs
- SoapConverter.cs
- WebServiceHandlerFactory.cs
- DataMemberAttribute.cs
- PathFigure.cs
- EntityProviderFactory.cs
- LayoutManager.cs
- CounterCreationData.cs
- WhiteSpaceTrimStringConverter.cs
- figurelength.cs
- SqlFlattener.cs
- XmlHierarchicalDataSourceView.cs
- Catch.cs
- EdmRelationshipRoleAttribute.cs
- FlatButtonAppearance.cs
- PrivateFontCollection.cs
- ButtonField.cs
- TriggerBase.cs