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
- ReplyChannel.cs
- InkCanvas.cs
- InstanceKeyCompleteException.cs
- OleDbConnection.cs
- Geometry3D.cs
- XmlException.cs
- Dictionary.cs
- ManagedIStream.cs
- ProxyGenerationError.cs
- _TransmitFileOverlappedAsyncResult.cs
- JsonDataContract.cs
- ObjectSelectorEditor.cs
- StringExpressionSet.cs
- DataColumn.cs
- DesignerSerializerAttribute.cs
- TemplateControlBuildProvider.cs
- CachingHintValidation.cs
- ParserContext.cs
- ConfigurationValue.cs
- httpserverutility.cs
- UriParserTemplates.cs
- OrderedDictionaryStateHelper.cs
- SqlClientWrapperSmiStream.cs
- BitmapEffectDrawing.cs
- CachingHintValidation.cs
- DataControlLinkButton.cs
- TreeViewHitTestInfo.cs
- SqlDeflator.cs
- SoapObjectReader.cs
- ProtocolsConfiguration.cs
- MergePropertyDescriptor.cs
- XsltFunctions.cs
- StyleSelector.cs
- TranslateTransform3D.cs
- EditorPartDesigner.cs
- EnumConverter.cs
- SystemIPGlobalProperties.cs
- ResourcePermissionBase.cs
- BinaryKeyIdentifierClause.cs
- StateMachineWorkflowInstance.cs
- Comparer.cs
- DefaultObjectMappingItemCollection.cs
- TypeDelegator.cs
- MethodAccessException.cs
- WebResourceAttribute.cs
- _RequestCacheProtocol.cs
- Calendar.cs
- XmlDataContract.cs
- DashStyle.cs
- safemediahandle.cs
- ModifierKeysConverter.cs
- SynchronizingStream.cs
- X509Certificate2.cs
- smtppermission.cs
- XPathNavigatorReader.cs
- BeginStoryboard.cs
- PenContext.cs
- XmlSchemaAnnotated.cs
- WindowsUserNameCachingSecurityTokenAuthenticator.cs
- CodeDirectoryCompiler.cs
- embossbitmapeffect.cs
- CatalogPartCollection.cs
- BaseContextMenu.cs
- FileNotFoundException.cs
- MissingMemberException.cs
- securitycriticaldata.cs
- AudienceUriMode.cs
- HtmlControl.cs
- AutomationPropertyInfo.cs
- XpsSerializationException.cs
- __ComObject.cs
- DataGridViewCellLinkedList.cs
- ImmComposition.cs
- ObjectAnimationUsingKeyFrames.cs
- UnknownWrapper.cs
- MediaElement.cs
- RuntimeWrappedException.cs
- SQLSingle.cs
- GradientStop.cs
- ObjectPersistData.cs
- SqlProvider.cs
- GridItemPatternIdentifiers.cs
- LogWriteRestartAreaState.cs
- StrongNameHelpers.cs
- ColumnPropertiesGroup.cs
- ButtonStandardAdapter.cs
- PerformanceCounters.cs
- CompilerScope.Storage.cs
- OleDbFactory.cs
- SecurityTokenResolver.cs
- RuleConditionDialog.cs
- NavigationPropertyAccessor.cs
- ConditionalDesigner.cs
- DynamicResourceExtensionConverter.cs
- Attributes.cs
- SqlAliaser.cs
- CqlIdentifiers.cs
- Grid.cs
- StateManagedCollection.cs
- QilBinary.cs