Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- WindowsBrush.cs
- CopyOnWriteList.cs
- SubclassTypeValidator.cs
- IssuedTokenServiceElement.cs
- ExceptionUtil.cs
- ChangeNode.cs
- Automation.cs
- SafeFileHandle.cs
- PolygonHotSpot.cs
- DataBoundControl.cs
- SafeNativeMethods.cs
- SpanIndex.cs
- ViewCellRelation.cs
- Brushes.cs
- NominalTypeEliminator.cs
- DateTimeValueSerializer.cs
- XmlArrayItemAttribute.cs
- MaskedTextBoxDesigner.cs
- PresentationAppDomainManager.cs
- FacetValueContainer.cs
- ItemDragEvent.cs
- Parsers.cs
- HttpStreamMessage.cs
- ObjectNotFoundException.cs
- OutputScopeManager.cs
- AssemblyBuilder.cs
- TypeDelegator.cs
- XmlRawWriterWrapper.cs
- BehaviorEditorPart.cs
- SBCSCodePageEncoding.cs
- AngleUtil.cs
- X509WindowsSecurityToken.cs
- TerminatorSinks.cs
- TextTabProperties.cs
- FlowDocumentScrollViewer.cs
- RowsCopiedEventArgs.cs
- TextChangedEventArgs.cs
- HijriCalendar.cs
- UIAgentRequest.cs
- MeshGeometry3D.cs
- LinqDataSourceHelper.cs
- BaseParagraph.cs
- OracleDateTime.cs
- PingReply.cs
- DNS.cs
- FileLevelControlBuilderAttribute.cs
- KeyboardEventArgs.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- CriticalHandle.cs
- HtmlHistory.cs
- DoubleAnimation.cs
- StatusBar.cs
- TextPointerBase.cs
- Crc32Helper.cs
- Odbc32.cs
- ObjectNotFoundException.cs
- RegularExpressionValidator.cs
- XPathPatternBuilder.cs
- PropertyIDSet.cs
- UnsafeNativeMethods.cs
- StringValueConverter.cs
- BooleanToVisibilityConverter.cs
- TabPanel.cs
- SqlTrackingService.cs
- RegisteredExpandoAttribute.cs
- DelimitedListTraceListener.cs
- NameValueCollection.cs
- ActivityXRefPropertyEditor.cs
- ReleaseInstanceMode.cs
- StaticExtension.cs
- StrokeRenderer.cs
- Roles.cs
- CodeGenHelper.cs
- UserValidatedEventArgs.cs
- Compiler.cs
- InternalConfigRoot.cs
- TemplateComponentConnector.cs
- ParameterToken.cs
- WorkflowControlEndpoint.cs
- TemplateInstanceAttribute.cs
- ChangeDirector.cs
- CssClassPropertyAttribute.cs
- ISAPIRuntime.cs
- PatternMatcher.cs
- EventMap.cs
- CatalogZoneBase.cs
- DynamicObjectAccessor.cs
- CategoryAttribute.cs
- Win32Exception.cs
- InstanceKeyNotReadyException.cs
- HttpVersion.cs
- Intellisense.cs
- HttpModuleActionCollection.cs
- Bidi.cs
- StringReader.cs
- DataStreamFromComStream.cs
- ObjectDataSourceStatusEventArgs.cs
- TransformConverter.cs
- ApplyImportsAction.cs
- CultureMapper.cs