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
- RSAPKCS1SignatureFormatter.cs
- OpenTypeLayoutCache.cs
- TokenBasedSet.cs
- AtomicFile.cs
- TrustLevel.cs
- FixedDocument.cs
- AnnotationAdorner.cs
- FacetDescription.cs
- PropertyEmitter.cs
- XmlSchemaIdentityConstraint.cs
- PrimaryKeyTypeConverter.cs
- OleDbWrapper.cs
- CheckPair.cs
- SrgsGrammar.cs
- OutputWindow.cs
- EntityContainer.cs
- KeyFrames.cs
- RegexBoyerMoore.cs
- ApplicationBuildProvider.cs
- HttpHandlersSection.cs
- TraceHwndHost.cs
- TrackBarRenderer.cs
- HelpEvent.cs
- ZipIOCentralDirectoryBlock.cs
- RequestCacheValidator.cs
- Serializer.cs
- TreeNodeBinding.cs
- WebPartMenuStyle.cs
- ActivityExecutorOperation.cs
- EntitySetDataBindingList.cs
- FrameworkTemplate.cs
- MbpInfo.cs
- RecordsAffectedEventArgs.cs
- CacheAxisQuery.cs
- CompiledQuery.cs
- EventNotify.cs
- CancellationHandler.cs
- IsolatedStorageSecurityState.cs
- InfoCardListRequest.cs
- Nullable.cs
- WebBrowser.cs
- Quaternion.cs
- HttpStreams.cs
- ViewValidator.cs
- DataServiceClientException.cs
- MaskedTextBoxDesignerActionList.cs
- CaseStatement.cs
- TextLine.cs
- UIElement.cs
- AutomationPatternInfo.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- ComponentDispatcher.cs
- querybuilder.cs
- ModuleBuilder.cs
- GroupQuery.cs
- GACIdentityPermission.cs
- CacheMode.cs
- Interop.cs
- FileInfo.cs
- TabRenderer.cs
- ToolStripItemImageRenderEventArgs.cs
- PropertyPathWorker.cs
- ConditionalDesigner.cs
- SelectedGridItemChangedEvent.cs
- EntityDataSource.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- ParseHttpDate.cs
- BookmarkScope.cs
- SettingsProperty.cs
- XmlSerializableWriter.cs
- ValidationHelpers.cs
- BaseDataListComponentEditor.cs
- StyleSheetDesigner.cs
- OutputScopeManager.cs
- DataListItem.cs
- SafeRightsManagementHandle.cs
- EventListenerClientSide.cs
- IdentifierService.cs
- CatalogZoneBase.cs
- SymbolMethod.cs
- ImpersonateTokenRef.cs
- AsymmetricKeyExchangeFormatter.cs
- UncommonField.cs
- IntegerValidator.cs
- XmlChildNodes.cs
- LongValidator.cs
- PinnedBufferMemoryStream.cs
- ConfigurationElement.cs
- SymbolEqualComparer.cs
- Unit.cs
- Debug.cs
- HttpCookieCollection.cs
- TransactionTraceIdentifier.cs
- TypeUtils.cs
- Emitter.cs
- SerializerProvider.cs
- TextTreePropertyUndoUnit.cs
- PackUriHelper.cs
- WebServiceAttribute.cs
- DrawItemEvent.cs