Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XPathNavigator.cs
- SqlRecordBuffer.cs
- DataGridViewColumnCollection.cs
- ValidationHelpers.cs
- RegexCaptureCollection.cs
- OleDbCommand.cs
- AudioFileOut.cs
- SQLDouble.cs
- PerfService.cs
- AncestorChangedEventArgs.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- FontFamilyConverter.cs
- HashFinalRequest.cs
- SQLBytesStorage.cs
- HtmlInputReset.cs
- SigningCredentials.cs
- EdmItemCollection.cs
- MediaPlayer.cs
- XamlBrushSerializer.cs
- LongValidator.cs
- AtomPub10CategoriesDocumentFormatter.cs
- PackUriHelper.cs
- ProcessModule.cs
- TcpPortSharing.cs
- RemoteX509AsymmetricSecurityKey.cs
- MergeFailedEvent.cs
- OleStrCAMarshaler.cs
- DataKey.cs
- UnicastIPAddressInformationCollection.cs
- XmlSchemaParticle.cs
- SignalGate.cs
- QueryInterceptorAttribute.cs
- CounterCreationDataCollection.cs
- Base64Stream.cs
- Timer.cs
- ListItemParagraph.cs
- Slider.cs
- XmlIgnoreAttribute.cs
- ErrorFormatterPage.cs
- SqlParameterCollection.cs
- Clock.cs
- InputDevice.cs
- MediaTimeline.cs
- CheckPair.cs
- XmlName.cs
- SelectionEditor.cs
- KeyedCollection.cs
- ModelItemKeyValuePair.cs
- DataGridViewLinkCell.cs
- Solver.cs
- Completion.cs
- Main.cs
- UpdateRecord.cs
- SemaphoreFullException.cs
- TTSEngineProxy.cs
- HttpCapabilitiesBase.cs
- ConfigXmlText.cs
- FunctionUpdateCommand.cs
- DictionaryManager.cs
- ForeignConstraint.cs
- DragDrop.cs
- Mapping.cs
- WebBrowserDocumentCompletedEventHandler.cs
- UrlMappingsModule.cs
- TypeConverter.cs
- PrePostDescendentsWalker.cs
- IsolatedStoragePermission.cs
- DataRowCollection.cs
- Assert.cs
- SplineKeyFrames.cs
- PeerCollaboration.cs
- SspiSecurityTokenParameters.cs
- CharEntityEncoderFallback.cs
- Classification.cs
- XmlEnumAttribute.cs
- ErasingStroke.cs
- BooleanSwitch.cs
- panel.cs
- KeyValuePairs.cs
- TemplatedWizardStep.cs
- FontSourceCollection.cs
- DbConnectionInternal.cs
- DataServiceProcessingPipeline.cs
- XmlSerializerOperationGenerator.cs
- ImageCodecInfoPrivate.cs
- UnknownBitmapEncoder.cs
- EntityModelBuildProvider.cs
- PersonalizationStateQuery.cs
- PtsContext.cs
- CodeEventReferenceExpression.cs
- PrintingPermissionAttribute.cs
- SafeRightsManagementHandle.cs
- ControlUtil.cs
- userdatakeys.cs
- SplitterEvent.cs
- RoutedEventConverter.cs
- ParserHooks.cs
- UnaryQueryOperator.cs
- GridLength.cs
- HotCommands.cs