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
- FlowDocumentScrollViewer.cs
- ProfileSettingsCollection.cs
- DependencyObjectType.cs
- SecurityManager.cs
- DataGridRowHeader.cs
- Blend.cs
- LoadWorkflowByKeyAsyncResult.cs
- BamlReader.cs
- TextBoxBase.cs
- RectangleGeometry.cs
- JavaScriptString.cs
- MeasureData.cs
- WindowAutomationPeer.cs
- BaseInfoTable.cs
- UrlPath.cs
- HasCopySemanticsAttribute.cs
- UnhandledExceptionEventArgs.cs
- TcpStreams.cs
- Pair.cs
- BufferedConnection.cs
- InvalidEnumArgumentException.cs
- behaviorssection.cs
- ThicknessConverter.cs
- DataRowChangeEvent.cs
- Freezable.cs
- DropShadowBitmapEffect.cs
- ProvidePropertyAttribute.cs
- Visual3D.cs
- ReflectionPermission.cs
- Stack.cs
- HtmlInputRadioButton.cs
- MetadataItemSerializer.cs
- NavigatorOutput.cs
- XmlWriter.cs
- WindowCollection.cs
- RepeatButtonAutomationPeer.cs
- localization.cs
- DeobfuscatingStream.cs
- XmlException.cs
- TransactionInformation.cs
- CodeDelegateCreateExpression.cs
- ExtentCqlBlock.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- CodeAccessSecurityEngine.cs
- StyleSelector.cs
- CompareValidator.cs
- XamlBrushSerializer.cs
- QueryProcessor.cs
- ThreadStartException.cs
- VisualStyleElement.cs
- MemberMaps.cs
- Identifier.cs
- EntryWrittenEventArgs.cs
- TriggerBase.cs
- _ContextAwareResult.cs
- CharAnimationBase.cs
- UInt64.cs
- SpeechSynthesizer.cs
- StrokeCollection.cs
- ObjectDataSource.cs
- DataGridPagerStyle.cs
- HttpGetProtocolImporter.cs
- EpmSourceTree.cs
- AppSettingsSection.cs
- FileVersionInfo.cs
- HyperLinkColumn.cs
- Frame.cs
- IDReferencePropertyAttribute.cs
- Policy.cs
- ParallelTimeline.cs
- Environment.cs
- isolationinterop.cs
- ValidationEventArgs.cs
- WebConfigurationHostFileChange.cs
- BinHexDecoder.cs
- SizeConverter.cs
- ResolveNameEventArgs.cs
- SQLSingleStorage.cs
- GenericsInstances.cs
- VisualStates.cs
- MenuItemBindingCollection.cs
- NavigationEventArgs.cs
- OutputCacheSection.cs
- SocketInformation.cs
- _HeaderInfoTable.cs
- BaseCodePageEncoding.cs
- RowToFieldTransformer.cs
- CheckBoxBaseAdapter.cs
- WindowsFormsHostAutomationPeer.cs
- LinkedList.cs
- MimeReflector.cs
- PagerSettings.cs
- DataColumn.cs
- ImageIndexConverter.cs
- HotCommands.cs
- ArraySubsetEnumerator.cs
- ColumnReorderedEventArgs.cs
- NeutralResourcesLanguageAttribute.cs
- DispatcherOperation.cs
- FormCollection.cs