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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MetadataFile.cs
- RayHitTestParameters.cs
- TrustSection.cs
- DictionaryManager.cs
- MLangCodePageEncoding.cs
- SQLDecimal.cs
- WindowsGraphics2.cs
- SequenceFullException.cs
- SiteMapPath.cs
- updatecommandorderer.cs
- SubclassTypeValidator.cs
- Binding.cs
- ParserHooks.cs
- EdmSchemaError.cs
- XomlCompilerHelpers.cs
- Add.cs
- WindowsProgressbar.cs
- OdbcReferenceCollection.cs
- TreeNodeConverter.cs
- RadioButtonRenderer.cs
- VarInfo.cs
- CroppedBitmap.cs
- LiteralDesigner.cs
- WebServicesSection.cs
- ComponentSerializationService.cs
- ScriptHandlerFactory.cs
- TableChangeProcessor.cs
- SiteMap.cs
- DataControlFieldCell.cs
- DrawingGroup.cs
- AppDomain.cs
- ToolStripPanelCell.cs
- TableDetailsCollection.cs
- KnownTypesHelper.cs
- TextElementCollectionHelper.cs
- Collection.cs
- PenThread.cs
- NameValueSectionHandler.cs
- WebColorConverter.cs
- TransformerTypeCollection.cs
- FileSecurity.cs
- PackagingUtilities.cs
- SourceExpressionException.cs
- LinkLabel.cs
- AssociativeAggregationOperator.cs
- ModifyActivitiesPropertyDescriptor.cs
- LineVisual.cs
- OutputCacheProfile.cs
- WmpBitmapEncoder.cs
- BitmapEffectInput.cs
- FileDialogCustomPlace.cs
- PathFigureCollection.cs
- ReferenceEqualityComparer.cs
- HttpsChannelFactory.cs
- OracleFactory.cs
- ActivityExecutorSurrogate.cs
- ScrollableControl.cs
- HMAC.cs
- ObjectDataSource.cs
- BindingMAnagerBase.cs
- RootProfilePropertySettingsCollection.cs
- StoreAnnotationsMap.cs
- ListSortDescriptionCollection.cs
- FunctionImportMapping.cs
- Margins.cs
- Models.cs
- PerformanceCountersElement.cs
- PeerEndPoint.cs
- DataColumnMappingCollection.cs
- ToolBar.cs
- DataGridViewCellValueEventArgs.cs
- _UriSyntax.cs
- DragCompletedEventArgs.cs
- LinqExpressionNormalizer.cs
- AdvancedBindingEditor.cs
- SQLDateTimeStorage.cs
- DefaultValueAttribute.cs
- FormsAuthenticationCredentials.cs
- ValidationErrorInfo.cs
- DefaultPerformanceCounters.cs
- HtmlShimManager.cs
- COM2ComponentEditor.cs
- PrePrepareMethodAttribute.cs
- MarkupCompiler.cs
- ContentDisposition.cs
- Array.cs
- LookupNode.cs
- ServerValidateEventArgs.cs
- WindowsBrush.cs
- XsltInput.cs
- LinkUtilities.cs
- WorkflowTransactionService.cs
- AutoFocusStyle.xaml.cs
- TextLine.cs
- Hyperlink.cs
- EventDescriptorCollection.cs
- IDReferencePropertyAttribute.cs
- ProxyHwnd.cs
- XmlSchemaResource.cs
- DataServiceHostFactory.cs