Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- ObjectParameter.cs
- SqlDependency.cs
- MessageFormatterConverter.cs
- TextBox.cs
- GraphicsContainer.cs
- WindowsListViewGroupSubsetLink.cs
- DispatcherFrame.cs
- ProgressPage.cs
- FixedSOMGroup.cs
- LinearGradientBrush.cs
- VisualStateManager.cs
- KeyFrames.cs
- SpnegoTokenAuthenticator.cs
- WinFormsComponentEditor.cs
- IRCollection.cs
- DBSchemaRow.cs
- WorkflowPageSetupDialog.cs
- MailMessageEventArgs.cs
- RoutedEventHandlerInfo.cs
- BuiltInPermissionSets.cs
- ProfileSettings.cs
- Vector3dCollection.cs
- BindingsCollection.cs
- ToolStripItemRenderEventArgs.cs
- TextSpanModifier.cs
- ImageClickEventArgs.cs
- Buffer.cs
- OutgoingWebRequestContext.cs
- MimeBasePart.cs
- XmlCharacterData.cs
- NestedContainer.cs
- MetadataFile.cs
- ExpandSegment.cs
- DataGridTableStyleMappingNameEditor.cs
- ChtmlTextBoxAdapter.cs
- MatrixConverter.cs
- MailMessageEventArgs.cs
- BaseCodePageEncoding.cs
- ListViewUpdateEventArgs.cs
- DataStreamFromComStream.cs
- SessionStateItemCollection.cs
- GenericEnumerator.cs
- HttpListenerException.cs
- ImageCreator.cs
- Identity.cs
- FlagsAttribute.cs
- ParserContext.cs
- StrongNameUtility.cs
- XPathNavigatorReader.cs
- StatusBar.cs
- ContractInstanceProvider.cs
- XmlWhitespace.cs
- CapabilitiesPattern.cs
- NamedPipeHostedTransportConfiguration.cs
- Lasso.cs
- Line.cs
- XmlDataCollection.cs
- SvcMapFile.cs
- OuterGlowBitmapEffect.cs
- DrawListViewColumnHeaderEventArgs.cs
- SqlTopReducer.cs
- UpdatePanelControlTrigger.cs
- LinqDataSourceView.cs
- TrackPointCollection.cs
- EntityDataSourceWrapper.cs
- RetrieveVirtualItemEventArgs.cs
- DataControlPagerLinkButton.cs
- QilGeneratorEnv.cs
- LoginView.cs
- MULTI_QI.cs
- BooleanFacetDescriptionElement.cs
- TemplateBindingExtensionConverter.cs
- TextSelection.cs
- Brushes.cs
- Token.cs
- DesignerRegionMouseEventArgs.cs
- Timer.cs
- DataGridViewCellMouseEventArgs.cs
- XPathSelectionIterator.cs
- XmlIlGenerator.cs
- DockProviderWrapper.cs
- DataSourceXmlClassAttribute.cs
- DataGridViewColumnCollection.cs
- DetailsViewRowCollection.cs
- FileSystemWatcher.cs
- HwndMouseInputProvider.cs
- EmptyControlCollection.cs
- EntityCommandExecutionException.cs
- WriteFileContext.cs
- CompositeCollection.cs
- WebPartVerbCollection.cs
- XmlLoader.cs
- PaperSize.cs
- UserInitiatedRoutedEventPermission.cs
- SchemaTableColumn.cs
- TypeDelegator.cs
- ViewSimplifier.cs
- InvalidWMPVersionException.cs
- EncryptedData.cs
- SafeWaitHandle.cs