Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / MS / Internal / Controls / WebBrowserNavigatingEventHandler.cs / 1 / WebBrowserNavigatingEventHandler.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // // // Description: // WebBrowserNavigatingEventHandler is used to listen to the // DWebBrowserEvent2.BeforeNavigate event of the webbrowser control // // Copied from WebBrowserNavigatingEventHandlers.cs in winforms // // History // 04/17/05 [....] Created // //----------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Diagnostics; using System.IO; using System.Security.Permissions; using System.Security; using System.Runtime.InteropServices; using System.Net; namespace MS.Internal.Controls { /// Delegate to the WebBrowser Navigating event. internal delegate void WebBrowserNavigatingEventHandler(object sender, WebBrowserNavigatingEventArgs e); /// Provides data for theevent. internal class WebBrowserNavigatingEventArgs : CancelEventArgs { // Not a URI object - as the WEB OC gives this to us. /// /// Critical: the uri can point to a loose content file in the ClickOnce cache /// private SecurityCriticalData_browserUri ; private string _targetFrameName; /// Creates an instance of the class. internal WebBrowserNavigatingEventArgs(string url, string targetFrameName) { _browserUri = new SecurityCriticalData ( new Uri(url) ) ; _targetFrameName = targetFrameName; } /// Url the browser is navigating to. /// /// Critical: Getter is critical because the uri can point to a loose content file in the ClickOnce cache /// internal Uri Uri { [SecurityCritical] get { //WebBrowser.EnsureUrlConnectPermission(url); return _browserUri.Value; } } // Commented out until it is needed to comply with FXCOP ///// In case an individual frame is about to be navigated, this contains the frame name. //internal string TargetFrameName //{ // get // { // //WebBrowser.EnsureUrlConnectPermission(url); // return _targetFrameName; // } //} } } // 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
- NavigationWindowAutomationPeer.cs
- OutOfMemoryException.cs
- UnsafeNativeMethods.cs
- DtdParser.cs
- Calendar.cs
- PropertyPanel.cs
- SchemaImporterExtensionElementCollection.cs
- InputScopeConverter.cs
- BookmarkEventArgs.cs
- PolygonHotSpot.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- ConnectionOrientedTransportElement.cs
- MobileControlDesigner.cs
- PanelStyle.cs
- SeverityFilter.cs
- COAUTHINFO.cs
- Vector3DValueSerializer.cs
- XmlILAnnotation.cs
- ShapeTypeface.cs
- DataSetMappper.cs
- DocumentAutomationPeer.cs
- OdbcDataReader.cs
- MenuBase.cs
- BooleanToVisibilityConverter.cs
- RuleSettings.cs
- StrokeCollection2.cs
- SqlWriter.cs
- EntityCommandDefinition.cs
- StrokeCollection.cs
- PolicyDesigner.cs
- QilGenerator.cs
- AccessViolationException.cs
- ClientRolePrincipal.cs
- ParameterToken.cs
- CellTreeSimplifier.cs
- XPathPatternParser.cs
- Vector3DCollectionValueSerializer.cs
- PropertyPushdownHelper.cs
- ProviderBase.cs
- MatrixConverter.cs
- XmlIterators.cs
- DESCryptoServiceProvider.cs
- TextTrailingCharacterEllipsis.cs
- InvokeWebService.cs
- ActiveDocumentEvent.cs
- StrongTypingException.cs
- SqlError.cs
- ContainerSelectorActiveEvent.cs
- DataPointer.cs
- InheritanceRules.cs
- SkipQueryOptionExpression.cs
- HtmlInputControl.cs
- SafeFreeMibTable.cs
- SqlConnectionFactory.cs
- ResolveDuplexAsyncResult.cs
- PerformanceCounterNameAttribute.cs
- StylusPoint.cs
- ResourcePart.cs
- basevalidator.cs
- SQLUtility.cs
- HtmlInputRadioButton.cs
- SqlGatherConsumedAliases.cs
- AnnotationService.cs
- UpdateTranslator.cs
- TextStore.cs
- WindowsRebar.cs
- CellPartitioner.cs
- mongolianshape.cs
- Size3DConverter.cs
- InstanceData.cs
- UserPreferenceChangingEventArgs.cs
- HMACSHA256.cs
- SequentialUshortCollection.cs
- Transform.cs
- SqlLiftWhereClauses.cs
- util.cs
- XmlDomTextWriter.cs
- HoistedLocals.cs
- ColorConverter.cs
- RuntimeWrappedException.cs
- ZipQueryOperator.cs
- XmlWrappingReader.cs
- StreamResourceInfo.cs
- COSERVERINFO.cs
- SafeNativeMethods.cs
- GatewayDefinition.cs
- CellQuery.cs
- XmlSchemaComplexType.cs
- UnknownBitmapEncoder.cs
- ContextStaticAttribute.cs
- DataAdapter.cs
- TextFormatter.cs
- Effect.cs
- ToolStripTextBox.cs
- Math.cs
- DataGridViewBindingCompleteEventArgs.cs
- CancellationScope.cs
- CngProvider.cs
- TextPointerBase.cs
- SqlDataSourceStatusEventArgs.cs