Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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: [....] 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
- SimpleType.cs
- ClientSettingsSection.cs
- ClientApiGenerator.cs
- OleDbDataAdapter.cs
- linebase.cs
- BooleanFacetDescriptionElement.cs
- ImageList.cs
- Messages.cs
- HttpPostedFileWrapper.cs
- UnsafeNativeMethods.cs
- UnsafeNativeMethods.cs
- GlobalProxySelection.cs
- DbProviderServices.cs
- ping.cs
- ComboBoxItem.cs
- EmissiveMaterial.cs
- CustomWebEventKey.cs
- nulltextnavigator.cs
- ThemeInfoAttribute.cs
- DBConnectionString.cs
- ReadOnlyHierarchicalDataSourceView.cs
- FileDetails.cs
- BmpBitmapEncoder.cs
- StateDesigner.LayoutSelectionGlyph.cs
- VerificationAttribute.cs
- PointAnimationBase.cs
- MappingItemCollection.cs
- StateChangeEvent.cs
- InstanceDataCollection.cs
- MouseEvent.cs
- TraceSwitch.cs
- webeventbuffer.cs
- SamlAudienceRestrictionCondition.cs
- CustomExpressionEventArgs.cs
- DataRowChangeEvent.cs
- RoutedEvent.cs
- SymbolEqualComparer.cs
- CompiledXpathExpr.cs
- WebRequestModuleElement.cs
- BrowserTree.cs
- OracleException.cs
- RuleSettingsCollection.cs
- WinCategoryAttribute.cs
- MyContact.cs
- RotationValidation.cs
- ScriptingScriptResourceHandlerSection.cs
- DocumentAutomationPeer.cs
- DiscoveryReference.cs
- StrongNamePublicKeyBlob.cs
- ProjectionCamera.cs
- GeometryCollection.cs
- RunWorkerCompletedEventArgs.cs
- InvalidCardException.cs
- StringCollection.cs
- ChangesetResponse.cs
- activationcontext.cs
- DataGridViewIntLinkedList.cs
- RegexMatchCollection.cs
- OdbcException.cs
- XmlSubtreeReader.cs
- PointHitTestParameters.cs
- ChannelBuilder.cs
- XmlSchemaImporter.cs
- ScrollBarRenderer.cs
- HtmlTableCellCollection.cs
- SiteMapDesignerDataSourceView.cs
- SqlDataAdapter.cs
- OrthographicCamera.cs
- DbParameterCollection.cs
- EntitySetBaseCollection.cs
- Pens.cs
- SamlSecurityTokenAuthenticator.cs
- TypeDescriptorContext.cs
- ContextQuery.cs
- DataGridViewCellPaintingEventArgs.cs
- DocumentsTrace.cs
- ping.cs
- NavigationExpr.cs
- Context.cs
- ProgressBarHighlightConverter.cs
- prompt.cs
- ErrorEventArgs.cs
- DragEventArgs.cs
- SynchronizationFilter.cs
- ImmComposition.cs
- QueryCacheEntry.cs
- ListViewItem.cs
- TypeUtil.cs
- KeyToListMap.cs
- TripleDESCryptoServiceProvider.cs
- NewItemsContextMenuStrip.cs
- FontFamily.cs
- DropShadowBitmapEffect.cs
- EdmProviderManifest.cs
- TraceSection.cs
- NameObjectCollectionBase.cs
- SqlFlattener.cs
- GridViewUpdatedEventArgs.cs
- ContentOperations.cs
- BaseTypeViewSchema.cs