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
- TargetInvocationException.cs
- RoutedEventArgs.cs
- ActivityStateRecord.cs
- InternalResources.cs
- AuthenticationException.cs
- PhysicalFontFamily.cs
- Matrix3DValueSerializer.cs
- RuntimeComponentFilter.cs
- PictureBox.cs
- Int32AnimationBase.cs
- GeometryCombineModeValidation.cs
- HTMLTagNameToTypeMapper.cs
- MbpInfo.cs
- SiteMap.cs
- MemberRelationshipService.cs
- MailBnfHelper.cs
- XmlName.cs
- NamedPipeActivation.cs
- UnsafeNetInfoNativeMethods.cs
- DesignerSerializationOptionsAttribute.cs
- RtfToXamlLexer.cs
- TemplatePropertyEntry.cs
- TreeNodeCollectionEditorDialog.cs
- ControlAdapter.cs
- InputLanguageCollection.cs
- RadioButtonBaseAdapter.cs
- XmlReflectionMember.cs
- GenericRootAutomationPeer.cs
- ResourcePermissionBaseEntry.cs
- MessageAction.cs
- BitmapEffect.cs
- SqlFunctionAttribute.cs
- CompilerLocalReference.cs
- SQLDateTime.cs
- LookupBindingPropertiesAttribute.cs
- EntityTemplateFactory.cs
- SystemIPv6InterfaceProperties.cs
- OleDbCommand.cs
- _ChunkParse.cs
- NetDataContractSerializer.cs
- ImageSourceConverter.cs
- FileSystemEventArgs.cs
- ExtendedProtectionPolicyTypeConverter.cs
- RowUpdatingEventArgs.cs
- Exception.cs
- ThemeDirectoryCompiler.cs
- XPathItem.cs
- MenuItemStyleCollection.cs
- PersonalizationDictionary.cs
- QueryCacheEntry.cs
- UInt32.cs
- TTSEvent.cs
- GraphicsContext.cs
- cache.cs
- MetadataWorkspace.cs
- WarningException.cs
- SrgsSubset.cs
- MetricEntry.cs
- ListViewAutomationPeer.cs
- MultiTargetingUtil.cs
- BufferCache.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- DataSourceSelectArguments.cs
- WebEventCodes.cs
- ProxyWebPartManager.cs
- ColumnClickEvent.cs
- AutomationProperty.cs
- ConstantExpression.cs
- CopyAction.cs
- SourceSwitch.cs
- DesignTimeVisibleAttribute.cs
- HwndKeyboardInputProvider.cs
- Reference.cs
- UnsettableComboBox.cs
- ZoomComboBox.cs
- ToolStripDropDownButton.cs
- WebServiceMethodData.cs
- VisualState.cs
- IndexOutOfRangeException.cs
- SingleResultAttribute.cs
- CatalogPart.cs
- User.cs
- ToolStripDropDownClosedEventArgs.cs
- EventDescriptor.cs
- PasswordBoxAutomationPeer.cs
- ColorContext.cs
- DynamicContractTypeBuilder.cs
- Vector3dCollection.cs
- OdbcConnectionFactory.cs
- DocumentPageHost.cs
- BinaryFormatterWriter.cs
- PrivateFontCollection.cs
- DataGridViewDataConnection.cs
- EntityDescriptor.cs
- GlobalizationAssembly.cs
- TextProviderWrapper.cs
- ResourceReader.cs
- SharedDp.cs
- OleDbException.cs
- TagPrefixAttribute.cs