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
- FamilyTypeface.cs
- SearchForVirtualItemEventArgs.cs
- WebSysDefaultValueAttribute.cs
- ToolStripItemClickedEventArgs.cs
- UnsafeNativeMethods.cs
- ContractHandle.cs
- RecognizerInfo.cs
- HwndSubclass.cs
- GatewayIPAddressInformationCollection.cs
- IdentityReference.cs
- AnnotationHelper.cs
- PerformanceCounterLib.cs
- _FtpDataStream.cs
- ConfigXmlCDataSection.cs
- TextEditor.cs
- InstanceNotReadyException.cs
- ComponentEditorForm.cs
- LongCountAggregationOperator.cs
- ClientUrlResolverWrapper.cs
- ContentWrapperAttribute.cs
- SourceElementsCollection.cs
- CharConverter.cs
- Font.cs
- Visual3DCollection.cs
- FilteredReadOnlyMetadataCollection.cs
- UriScheme.cs
- Item.cs
- TypeDescriptionProvider.cs
- PtsHelper.cs
- EventLogConfiguration.cs
- CapabilitiesSection.cs
- IdentityHolder.cs
- CellCreator.cs
- MasterPageParser.cs
- ProcessRequestArgs.cs
- EntityContainer.cs
- DetailsViewInsertEventArgs.cs
- HtmlGenericControl.cs
- BatchWriter.cs
- MimeXmlImporter.cs
- DbConnectionOptions.cs
- GridViewRowEventArgs.cs
- QueryParameter.cs
- HttpListenerResponse.cs
- WebBaseEventKeyComparer.cs
- CompressionTransform.cs
- SkipStoryboardToFill.cs
- KeyEventArgs.cs
- XmlCDATASection.cs
- ApplicationServiceHelper.cs
- DataGridTemplateColumn.cs
- InterleavedZipPartStream.cs
- DurationConverter.cs
- DockPanel.cs
- MarshalByValueComponent.cs
- ActiveDesignSurfaceEvent.cs
- GeometryModel3D.cs
- XPathNodeList.cs
- EmptyStringExpandableObjectConverter.cs
- ElementProxy.cs
- RSAPKCS1SignatureFormatter.cs
- nulltextnavigator.cs
- XmlSchemaObjectCollection.cs
- PlanCompilerUtil.cs
- ParseChildrenAsPropertiesAttribute.cs
- ArrangedElementCollection.cs
- SqlDataReaderSmi.cs
- ResXFileRef.cs
- LabelDesigner.cs
- VirtualizingPanel.cs
- XmlBufferReader.cs
- DecimalFormatter.cs
- XmlSchemaDatatype.cs
- XPathNavigatorException.cs
- ParameterModifier.cs
- DurableOperationContext.cs
- HwndHostAutomationPeer.cs
- ToolStripProgressBar.cs
- ParseChildrenAsPropertiesAttribute.cs
- CookielessHelper.cs
- DataControlLinkButton.cs
- CustomAttribute.cs
- SamlAssertionKeyIdentifierClause.cs
- ServiceHostingEnvironment.cs
- DBPropSet.cs
- WindowsAuthenticationModule.cs
- ConnectionManagementSection.cs
- NonBatchDirectoryCompiler.cs
- DataSourceProvider.cs
- CompilationLock.cs
- Point3DCollectionConverter.cs
- TypedServiceChannelBuilder.cs
- ResourceKey.cs
- COMException.cs
- FixedSOMFixedBlock.cs
- XmlSchemaAttributeGroup.cs
- ListViewInsertionMark.cs
- MenuEventArgs.cs
- NamespaceEmitter.cs
- TheQuery.cs