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
- Control.cs
- ImageCodecInfoPrivate.cs
- EventToken.cs
- CryptoStream.cs
- StateRuntime.cs
- WeakEventManager.cs
- IItemProperties.cs
- FontFamilyValueSerializer.cs
- EntityChangedParams.cs
- XmlnsDefinitionAttribute.cs
- securitycriticaldataClass.cs
- ResourcesGenerator.cs
- DataTablePropertyDescriptor.cs
- HostProtectionPermission.cs
- WebPartConnectionsDisconnectVerb.cs
- XmlILIndex.cs
- IMembershipProvider.cs
- ManagedWndProcTracker.cs
- AssemblyHash.cs
- RenderOptions.cs
- ParentQuery.cs
- KeySplineConverter.cs
- SecurityContextSecurityTokenResolver.cs
- IdentityReference.cs
- ArcSegment.cs
- WorkflowApplicationIdleEventArgs.cs
- SqlConnection.cs
- HandledEventArgs.cs
- DeleteMemberBinder.cs
- ServicesUtilities.cs
- DirectoryRedirect.cs
- PenContexts.cs
- SynchronizedRandom.cs
- DocumentSequence.cs
- RegistryKey.cs
- StyleSelector.cs
- CfgParser.cs
- IDataContractSurrogate.cs
- EventWaitHandle.cs
- thaishape.cs
- DocumentPage.cs
- OrthographicCamera.cs
- Clock.cs
- CryptoApi.cs
- StructuredTypeInfo.cs
- IMembershipProvider.cs
- MyContact.cs
- HttpCacheVaryByContentEncodings.cs
- SystemInfo.cs
- SafeMemoryMappedFileHandle.cs
- TextModifier.cs
- XmlSchemaSet.cs
- RangeBaseAutomationPeer.cs
- PathFigure.cs
- RubberbandSelector.cs
- PeerUnsafeNativeMethods.cs
- LineBreakRecord.cs
- SapiRecognizer.cs
- Item.cs
- BitmapEffectDrawingContextWalker.cs
- SectionInformation.cs
- WmfPlaceableFileHeader.cs
- ObjectStateManagerMetadata.cs
- WebPartExportVerb.cs
- SqlDataSourceCommandParser.cs
- LifetimeServices.cs
- ConfigurationValues.cs
- _FtpControlStream.cs
- CategoryAttribute.cs
- LiteralSubsegment.cs
- CellTreeNodeVisitors.cs
- PreviewPageInfo.cs
- WebRequestModuleElement.cs
- OracleString.cs
- OleDbDataAdapter.cs
- DoubleIndependentAnimationStorage.cs
- StatusBarItemAutomationPeer.cs
- XmlQualifiedName.cs
- OptimizedTemplateContentHelper.cs
- SqlFlattener.cs
- ClientFormsAuthenticationMembershipProvider.cs
- EntityContainerRelationshipSetEnd.cs
- NameValueFileSectionHandler.cs
- DataBinder.cs
- HtmlValidatorAdapter.cs
- ExpressionBuilderContext.cs
- RequestNavigateEventArgs.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- ArcSegment.cs
- BrowserCapabilitiesFactory.cs
- PlatformCulture.cs
- ContentTextAutomationPeer.cs
- DataObjectMethodAttribute.cs
- SimpleTypesSurrogate.cs
- AssemblyNameProxy.cs
- CollectionsUtil.cs
- LambdaCompiler.Address.cs
- WebRequestModulesSection.cs
- StorageComplexTypeMapping.cs
- StreamGeometry.cs