Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Framework / System / Windows / Navigation / NavigationFailedEventArgs.cs / 1 / NavigationFailedEventArgs.cs
//-------------------------------------------------------------------------------------------------- // File: NavigationFailedCancelEventArgs.cs // // Copyright (C) 2004 by Microsoft Corporation. All rights reserved. // // Description: // This event is fired when an error is encountered during a navigation. // The NavigationFailedEventArgs contains the error status code and // the exception that was thrown. By default Handled property is set to false, // which allows the exception to be rethrown. // The event handler can prevent exception from throwing // to the user by setting the Handled property to true // // This event is fired on navigation container and refired on the NavigationApplication // // History: // 06/10/06: huwang Created // //------------------------------------------------------------------------------------------------- using System.ComponentModel; using System.Net; namespace System.Windows.Navigation { ////// Event args for NavigationFailed event /// The NavigationFailedEventArgs contains the exception that was thrown. /// By default Handled property is set to false. /// The event handler can prevent the exception from being throwing to the user by setting /// the Handled property to true /// public class NavigationFailedEventArgs : EventArgs { // Internal constructor internal NavigationFailedEventArgs(Uri uri, Object extraData, Object navigator, WebRequest request, WebResponse response, Exception e) { _uri = uri; _extraData = extraData; _navigator = navigator; _request = request; _response = response; _exception = e; } ////// URI of the markup page to navigate to. /// public Uri Uri { get { return _uri; } } ////// Exposes extra data object which was optionally passed as a parameter to Navigate. /// public Object ExtraData { get { return _extraData; } } ////// The navigator that raised this event /// public object Navigator { get { return _navigator; } } ////// Exposes the WebRequest used to retrieve content. /// public WebRequest WebRequest { get { return _request; } } ////// Exposes the WebResponse used to retrieve content. /// public WebResponse WebResponse { get { return _response; } } ////// Exception that was thrown during the navigation /// public Exception Exception { get { return _exception; } } ////// Returns a boolean flag indicating if or not this event has been handled. /// public bool Handled { get { return _handled; } set { _handled = value; } } Uri _uri; Object _extraData; Object _navigator; WebRequest _request; WebResponse _response; Exception _exception; bool _handled = false; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //-------------------------------------------------------------------------------------------------- // File: NavigationFailedCancelEventArgs.cs // // Copyright (C) 2004 by Microsoft Corporation. All rights reserved. // // Description: // This event is fired when an error is encountered during a navigation. // The NavigationFailedEventArgs contains the error status code and // the exception that was thrown. By default Handled property is set to false, // which allows the exception to be rethrown. // The event handler can prevent exception from throwing // to the user by setting the Handled property to true // // This event is fired on navigation container and refired on the NavigationApplication // // History: // 06/10/06: huwang Created // //------------------------------------------------------------------------------------------------- using System.ComponentModel; using System.Net; namespace System.Windows.Navigation { ////// Event args for NavigationFailed event /// The NavigationFailedEventArgs contains the exception that was thrown. /// By default Handled property is set to false. /// The event handler can prevent the exception from being throwing to the user by setting /// the Handled property to true /// public class NavigationFailedEventArgs : EventArgs { // Internal constructor internal NavigationFailedEventArgs(Uri uri, Object extraData, Object navigator, WebRequest request, WebResponse response, Exception e) { _uri = uri; _extraData = extraData; _navigator = navigator; _request = request; _response = response; _exception = e; } ////// URI of the markup page to navigate to. /// public Uri Uri { get { return _uri; } } ////// Exposes extra data object which was optionally passed as a parameter to Navigate. /// public Object ExtraData { get { return _extraData; } } ////// The navigator that raised this event /// public object Navigator { get { return _navigator; } } ////// Exposes the WebRequest used to retrieve content. /// public WebRequest WebRequest { get { return _request; } } ////// Exposes the WebResponse used to retrieve content. /// public WebResponse WebResponse { get { return _response; } } ////// Exception that was thrown during the navigation /// public Exception Exception { get { return _exception; } } ////// Returns a boolean flag indicating if or not this event has been handled. /// public bool Handled { get { return _handled; } set { _handled = value; } } Uri _uri; Object _extraData; Object _navigator; WebRequest _request; WebResponse _response; Exception _exception; bool _handled = false; } } // 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
- PrintEvent.cs
- MediaTimeline.cs
- ServiceEndpointElementCollection.cs
- Automation.cs
- BindingEntityInfo.cs
- counter.cs
- PageCatalogPart.cs
- ContentWrapperAttribute.cs
- ParallelDesigner.cs
- ReadWriteSpinLock.cs
- SymLanguageVendor.cs
- HtmlUtf8RawTextWriter.cs
- SettingsPropertyCollection.cs
- ToolTip.cs
- TemplatedWizardStep.cs
- RectangleHotSpot.cs
- DecimalAnimationUsingKeyFrames.cs
- WebControlAdapter.cs
- MouseActionConverter.cs
- GlyphingCache.cs
- PtsContext.cs
- WeakRefEnumerator.cs
- ResolveNameEventArgs.cs
- DebugViewWriter.cs
- AsmxEndpointPickerExtension.cs
- PeerOutputChannel.cs
- IPEndPoint.cs
- WindowsProgressbar.cs
- TypeGeneratedEventArgs.cs
- TrustLevelCollection.cs
- StorageComplexPropertyMapping.cs
- Opcode.cs
- AssemblyCollection.cs
- OdbcHandle.cs
- LazyTextWriterCreator.cs
- Int16Storage.cs
- TableRow.cs
- IconConverter.cs
- CompositeFontParser.cs
- DragCompletedEventArgs.cs
- HttpModuleAction.cs
- ReaderWriterLock.cs
- SafeNativeMethods.cs
- BuilderPropertyEntry.cs
- SoapInteropTypes.cs
- MatchNoneMessageFilter.cs
- VirtualizingStackPanel.cs
- ChtmlLinkAdapter.cs
- SmiRecordBuffer.cs
- MultiBinding.cs
- MemberHolder.cs
- Slider.cs
- _IPv4Address.cs
- HMACRIPEMD160.cs
- SafeTimerHandle.cs
- AuthenticationManager.cs
- DependencyObjectType.cs
- HashMembershipCondition.cs
- ParagraphResult.cs
- OdbcParameter.cs
- BookmarkScopeManager.cs
- ExpressionNormalizer.cs
- CommonDialog.cs
- JournalEntryStack.cs
- HotSpot.cs
- Constraint.cs
- CustomTypeDescriptor.cs
- RowType.cs
- TextEditorLists.cs
- SoapIgnoreAttribute.cs
- OutputScope.cs
- OpacityConverter.cs
- GetPageNumberCompletedEventArgs.cs
- DataSourceXmlAttributeAttribute.cs
- Condition.cs
- FrameworkName.cs
- ZoneButton.cs
- Rfc4050KeyFormatter.cs
- DropDownList.cs
- HtmlTableRowCollection.cs
- WebPartEditorCancelVerb.cs
- Converter.cs
- Semaphore.cs
- MarkupWriter.cs
- CanExecuteRoutedEventArgs.cs
- XmlAttributeOverrides.cs
- _SpnDictionary.cs
- TransformedBitmap.cs
- DataServiceQueryProvider.cs
- DataExpression.cs
- PrintControllerWithStatusDialog.cs
- XmlQueryStaticData.cs
- brushes.cs
- PenLineJoinValidation.cs
- PluralizationServiceUtil.cs
- LogRecordSequence.cs
- StandardToolWindows.cs
- FormatterServices.cs
- PasswordDeriveBytes.cs
- TargetConverter.cs