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 / 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
- MbpInfo.cs
- DataObject.cs
- SerialReceived.cs
- SequentialUshortCollection.cs
- MultiDataTrigger.cs
- WebConfigurationFileMap.cs
- CodePrimitiveExpression.cs
- XmlIgnoreAttribute.cs
- RequestCacheManager.cs
- SqlDataAdapter.cs
- XmlReader.cs
- CallbackException.cs
- SafeEventLogWriteHandle.cs
- PenCursorManager.cs
- TemplateXamlTreeBuilder.cs
- HttpCapabilitiesBase.cs
- CursorInteropHelper.cs
- KeyValuePairs.cs
- XsltConvert.cs
- UnsafeNativeMethods.cs
- IntAverageAggregationOperator.cs
- ProfilePropertySettingsCollection.cs
- EllipseGeometry.cs
- HttpCookieCollection.cs
- CounterCreationData.cs
- WinInet.cs
- HttpCachePolicyElement.cs
- BrowserTree.cs
- Condition.cs
- InkCanvasInnerCanvas.cs
- dsa.cs
- WebConfigurationHost.cs
- Rect3D.cs
- WebServiceHostFactory.cs
- NamespaceImport.cs
- HMACRIPEMD160.cs
- KeyboardEventArgs.cs
- XsdSchemaFileEditor.cs
- RemotingService.cs
- OracleRowUpdatedEventArgs.cs
- XappLauncher.cs
- ImpersonateTokenRef.cs
- ContentValidator.cs
- SafeNativeMethods.cs
- UserControl.cs
- DataGridViewComponentPropertyGridSite.cs
- DeviceContext.cs
- OracleDateTime.cs
- StrongNameMembershipCondition.cs
- StandardCommands.cs
- AutoGeneratedFieldProperties.cs
- CommunicationException.cs
- Pens.cs
- StaticSiteMapProvider.cs
- DateTimeFormatInfo.cs
- SystemResourceKey.cs
- Compiler.cs
- GlobalizationAssembly.cs
- NumericExpr.cs
- XmlHierarchicalDataSourceView.cs
- HandlerBase.cs
- CommandLibraryHelper.cs
- EventHandlerList.cs
- DataGridViewCellValidatingEventArgs.cs
- CharEnumerator.cs
- ListViewSortEventArgs.cs
- TextSelection.cs
- BulletedListEventArgs.cs
- HotSpot.cs
- SeekStoryboard.cs
- RegexMatchCollection.cs
- LifetimeServices.cs
- TagPrefixCollection.cs
- WebPartsPersonalization.cs
- Compiler.cs
- InstanceOwner.cs
- ProfileService.cs
- WebConfigurationHostFileChange.cs
- SelectionHighlightInfo.cs
- Bits.cs
- DocumentApplicationJournalEntry.cs
- AnonymousIdentificationModule.cs
- PLINQETWProvider.cs
- DataKey.cs
- TabControl.cs
- LinkTarget.cs
- ViewRendering.cs
- ValidationResult.cs
- X500Name.cs
- NumericPagerField.cs
- XpsException.cs
- CustomAttributeBuilder.cs
- PerspectiveCamera.cs
- PreviewPrintController.cs
- BaseDataBoundControl.cs
- RemoveStoryboard.cs
- EntityDataSourceChangedEventArgs.cs
- Point3D.cs
- ResourcePermissionBase.cs
- Executor.cs