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
- TokenBasedSet.cs
- XsltLoader.cs
- ValidatingReaderNodeData.cs
- Propagator.cs
- TextDecoration.cs
- DesignerTextBoxAdapter.cs
- OraclePermissionAttribute.cs
- PropertyCollection.cs
- ExternalCalls.cs
- ButtonBaseAutomationPeer.cs
- RoleManagerModule.cs
- DSASignatureDeformatter.cs
- RenderTargetBitmap.cs
- GetChildSubtree.cs
- HttpWriter.cs
- NonVisualControlAttribute.cs
- PageHandlerFactory.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- DataBoundControlAdapter.cs
- CompilerErrorCollection.cs
- TabControlCancelEvent.cs
- MenuStrip.cs
- ClientSettingsStore.cs
- WorkflowMarkupElementEventArgs.cs
- ReadContentAsBinaryHelper.cs
- LowerCaseStringConverter.cs
- TimeoutException.cs
- OdbcEnvironment.cs
- GridEntryCollection.cs
- SR.cs
- TableCell.cs
- InputBinder.cs
- BrowserDefinition.cs
- DragDeltaEventArgs.cs
- Enum.cs
- SqlDataSourceWizardForm.cs
- TokenCreationException.cs
- ProcessThreadCollection.cs
- TextRange.cs
- WebControl.cs
- SoapInteropTypes.cs
- WorkflowInstance.cs
- DbConnectionFactory.cs
- StylusPointProperty.cs
- ImmutableObjectAttribute.cs
- CodeExpressionStatement.cs
- FaultContractInfo.cs
- XmlSchemaSearchPattern.cs
- RequestDescription.cs
- DodSequenceMerge.cs
- NegatedCellConstant.cs
- UserControl.cs
- printdlgexmarshaler.cs
- ProxyElement.cs
- Attributes.cs
- DateTimePicker.cs
- APCustomTypeDescriptor.cs
- ServiceContractViewControl.Designer.cs
- ValidationErrorCollection.cs
- ParentUndoUnit.cs
- FileReservationCollection.cs
- ExtensionSimplifierMarkupObject.cs
- WindowShowOrOpenTracker.cs
- ArgumentsParser.cs
- StrokeRenderer.cs
- OdbcParameter.cs
- ProcessInfo.cs
- SafeFileMappingHandle.cs
- EffectiveValueEntry.cs
- SynchronizedPool.cs
- ApplicationBuildProvider.cs
- HttpRawResponse.cs
- Run.cs
- SizeConverter.cs
- HttpHeaderCollection.cs
- TraceLevelStore.cs
- peernodestatemanager.cs
- BuildManagerHost.cs
- WebPartDisplayModeEventArgs.cs
- CapacityStreamGeometryContext.cs
- WindowsGraphics.cs
- CodeSnippetExpression.cs
- DataGridViewDataErrorEventArgs.cs
- IntranetCredentialPolicy.cs
- DrawListViewSubItemEventArgs.cs
- RegistryKey.cs
- SelectionEditingBehavior.cs
- ParserOptions.cs
- BaseParagraph.cs
- IPPacketInformation.cs
- BrowserTree.cs
- SendKeys.cs
- Enum.cs
- QueryOpeningEnumerator.cs
- DbTransaction.cs
- ListViewSortEventArgs.cs
- TextServicesDisplayAttribute.cs
- Matrix3D.cs
- DataGridParentRows.cs
- documentsequencetextview.cs