Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Navigation / NavigationFailedEventArgs.cs / 1305600 / 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
- CommonDialog.cs
- SoapReflector.cs
- KeyValuePairs.cs
- ConsumerConnectionPoint.cs
- LinqExpressionNormalizer.cs
- AttributeAction.cs
- XPathNodeHelper.cs
- NavigationPropertyEmitter.cs
- ValueSerializer.cs
- ResolveCriteriaApril2005.cs
- OleDbConnection.cs
- WebEvents.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- SuppressIldasmAttribute.cs
- DesignerView.cs
- UriGenerator.cs
- ConnectionInterfaceCollection.cs
- ComponentCollection.cs
- SchemaElementDecl.cs
- WebServiceResponse.cs
- TableItemProviderWrapper.cs
- MarkupProperty.cs
- WindowsGrip.cs
- UserControlBuildProvider.cs
- GcSettings.cs
- Metafile.cs
- XmlSchemaFacet.cs
- Metadata.cs
- ActivityValidationServices.cs
- DetailsViewDeleteEventArgs.cs
- DeclaredTypeElement.cs
- WinOEToolBoxItem.cs
- _DigestClient.cs
- WindowsContainer.cs
- SqlGenericUtil.cs
- ThreadStartException.cs
- CheckBox.cs
- RuleElement.cs
- ListItemConverter.cs
- TextAdaptor.cs
- loginstatus.cs
- ProbeRequestResponseAsyncResult.cs
- dtdvalidator.cs
- ColumnResult.cs
- TreeNodeCollection.cs
- AttributeEmitter.cs
- SmiGettersStream.cs
- StateItem.cs
- TextRange.cs
- LinkLabel.cs
- SchemaNames.cs
- DataGridViewCheckBoxCell.cs
- DES.cs
- DataRowCollection.cs
- ConfigurationException.cs
- DbMetaDataFactory.cs
- TabItemAutomationPeer.cs
- BindingList.cs
- RawUIStateInputReport.cs
- DetailsView.cs
- PrincipalPermission.cs
- PermissionToken.cs
- SafeIUnknown.cs
- ChannelListenerBase.cs
- SessionStateItemCollection.cs
- Imaging.cs
- ProfileSettings.cs
- CodeIterationStatement.cs
- XmlSerializerVersionAttribute.cs
- IndentedTextWriter.cs
- RawAppCommandInputReport.cs
- DataColumnPropertyDescriptor.cs
- PartialArray.cs
- TableAdapterManagerGenerator.cs
- TextModifier.cs
- BaseConfigurationRecord.cs
- VariableModifiersHelper.cs
- ConcurrencyMode.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- _TransmitFileOverlappedAsyncResult.cs
- DockPatternIdentifiers.cs
- ValidateNames.cs
- MetafileHeader.cs
- OleDbSchemaGuid.cs
- DrawListViewSubItemEventArgs.cs
- DataServiceContext.cs
- ObjectDataSourceStatusEventArgs.cs
- HttpSessionStateWrapper.cs
- WhitespaceRuleLookup.cs
- ISSmlParser.cs
- ReaderWriterLock.cs
- MeshGeometry3D.cs
- LayoutUtils.cs
- XsdDateTime.cs
- WebPartChrome.cs
- xdrvalidator.cs
- ProjectionCamera.cs
- Peer.cs
- TextServicesProperty.cs
- XPathDocumentIterator.cs