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
- ProcessModelInfo.cs
- CompletedAsyncResult.cs
- ProcessModuleCollection.cs
- QuerySelectOp.cs
- ListMarkerSourceInfo.cs
- TemplateGroupCollection.cs
- WorkflowInstanceSuspendedRecord.cs
- DecimalAnimationBase.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- HttpCacheVaryByContentEncodings.cs
- SourceLineInfo.cs
- WorkflowViewService.cs
- SmiGettersStream.cs
- TextProperties.cs
- Bold.cs
- HostingEnvironmentSection.cs
- Context.cs
- HeaderCollection.cs
- OdbcErrorCollection.cs
- PageBuildProvider.cs
- LocatorPartList.cs
- HttpListenerPrefixCollection.cs
- CellTreeSimplifier.cs
- Type.cs
- ContentElement.cs
- SendSecurityHeaderElement.cs
- XmlArrayItemAttribute.cs
- AliasedSlot.cs
- StylusEventArgs.cs
- ModelItemCollectionImpl.cs
- EtwTrace.cs
- CopyNodeSetAction.cs
- TextElement.cs
- LongPath.cs
- SqlErrorCollection.cs
- SrgsDocument.cs
- DiagnosticTrace.cs
- ValidationPropertyAttribute.cs
- LogAppendAsyncResult.cs
- CultureTable.cs
- RecommendedAsConfigurableAttribute.cs
- PostBackOptions.cs
- XmlCollation.cs
- MatrixStack.cs
- formatter.cs
- Visitors.cs
- ConfigXmlComment.cs
- ButtonStandardAdapter.cs
- DeleteCardRequest.cs
- SQLInt32Storage.cs
- TransformConverter.cs
- EntityWithChangeTrackerStrategy.cs
- SizeAnimation.cs
- XmlIlVisitor.cs
- SystemUdpStatistics.cs
- GridViewEditEventArgs.cs
- BufferedGraphicsContext.cs
- SchemaTypeEmitter.cs
- HostUtils.cs
- SqlMethodCallConverter.cs
- Pen.cs
- RunInstallerAttribute.cs
- PeerCollaboration.cs
- PrinterSettings.cs
- _NativeSSPI.cs
- ArglessEventHandlerProxy.cs
- OracleException.cs
- ZipIOExtraFieldPaddingElement.cs
- RSACryptoServiceProvider.cs
- RuleEngine.cs
- PropertyOverridesDialog.cs
- HuffModule.cs
- CalloutQueueItem.cs
- FileUtil.cs
- EntityParameter.cs
- HtmlAnchor.cs
- Code.cs
- unsafenativemethodsother.cs
- Padding.cs
- InvalidPipelineStoreException.cs
- Knowncolors.cs
- TypeReference.cs
- WaveHeader.cs
- SafeWaitHandle.cs
- ListBoxChrome.cs
- TextDecorationCollection.cs
- AnonymousIdentificationSection.cs
- StrokeIntersection.cs
- HtmlElementErrorEventArgs.cs
- DataRecordInfo.cs
- PartialList.cs
- ProxyAttribute.cs
- Thumb.cs
- GreenMethods.cs
- ClientOptions.cs
- UnhandledExceptionEventArgs.cs
- TrackingServices.cs
- RTLAwareMessageBox.cs
- CrossAppDomainChannel.cs
- LayoutUtils.cs