Code:
/ 4.0 / 4.0 / 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. //-------------------------------------------------------------------------------------------------- // 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
- VScrollProperties.cs
- ListViewDeleteEventArgs.cs
- CompositeActivityCodeGenerator.cs
- WorkflowServiceNamespace.cs
- SystemInfo.cs
- QuestionEventArgs.cs
- InheritablePropertyChangeInfo.cs
- WebBaseEventKeyComparer.cs
- SortKey.cs
- MemberDomainMap.cs
- webbrowsersite.cs
- BoundColumn.cs
- RelationshipFixer.cs
- IImplicitResourceProvider.cs
- ToolStripDropTargetManager.cs
- ParameterBuilder.cs
- PerfCounters.cs
- xsdvalidator.cs
- TableLayoutRowStyleCollection.cs
- BoundPropertyEntry.cs
- SettingsProviderCollection.cs
- QilVisitor.cs
- PrinterSettings.cs
- EventLogRecord.cs
- TextEditorTables.cs
- NativeMethods.cs
- ParamArrayAttribute.cs
- StorageBasedPackageProperties.cs
- RepeaterItemCollection.cs
- GroupBox.cs
- METAHEADER.cs
- XmlTextWriter.cs
- unsafeIndexingFilterStream.cs
- EditorPartChrome.cs
- TableStyle.cs
- WebPartAuthorizationEventArgs.cs
- QilXmlReader.cs
- NonClientArea.cs
- EventsTab.cs
- __ConsoleStream.cs
- IdentifierService.cs
- DataSvcMapFile.cs
- SpellerHighlightLayer.cs
- ExpressionBinding.cs
- UnmanagedMemoryAccessor.cs
- DataGridViewColumnConverter.cs
- XamlDebuggerXmlReader.cs
- GridViewDeleteEventArgs.cs
- MethodBuilder.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- DataGridTableCollection.cs
- InputLanguageProfileNotifySink.cs
- FixedTextContainer.cs
- XpsFixedPageReaderWriter.cs
- DataTableNewRowEvent.cs
- SqlDataSourceView.cs
- ParentQuery.cs
- DataGridTextBoxColumn.cs
- PageBreakRecord.cs
- DataServiceHostFactory.cs
- AutoGeneratedFieldProperties.cs
- SupportingTokenBindingElement.cs
- BitmapInitialize.cs
- QilStrConcat.cs
- ConditionalAttribute.cs
- MultiTouchSystemGestureLogic.cs
- CultureTable.cs
- PerformanceCounterPermissionEntry.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- PrePrepareMethodAttribute.cs
- LiteralControl.cs
- Point3DCollectionConverter.cs
- ReferentialConstraint.cs
- GenerateTemporaryAssemblyTask.cs
- IISMapPath.cs
- UInt64Converter.cs
- DataStreamFromComStream.cs
- NavigateEvent.cs
- ErrorBehavior.cs
- HttpRuntimeSection.cs
- MailMessageEventArgs.cs
- ADMembershipProvider.cs
- DesignerOptionService.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- LicenseManager.cs
- LongMinMaxAggregationOperator.cs
- SerialErrors.cs
- JulianCalendar.cs
- PhonemeEventArgs.cs
- TypedTableBase.cs
- ConfigurationPropertyAttribute.cs
- TypeReference.cs
- ReplyAdapterChannelListener.cs
- IndexOutOfRangeException.cs
- DataSourceCache.cs
- DataGridViewImageColumn.cs
- CompositeFontFamily.cs
- TextDecorationCollection.cs
- StringSource.cs
- DesignerForm.cs