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
- CodeParameterDeclarationExpressionCollection.cs
- MenuStrip.cs
- AvTrace.cs
- ListViewInsertionMark.cs
- DataBindingList.cs
- ViewGenResults.cs
- StateRuntime.cs
- WindowsNonControl.cs
- FormsAuthenticationUserCollection.cs
- StopRoutingHandler.cs
- GAC.cs
- GridViewPageEventArgs.cs
- EndpointInstanceProvider.cs
- TextEffectResolver.cs
- AssemblyAttributesGoHere.cs
- MaskedTextProvider.cs
- BufferedReceiveElement.cs
- MultiBindingExpression.cs
- SchemaElementDecl.cs
- Rfc2898DeriveBytes.cs
- ToolZone.cs
- AutomationEventArgs.cs
- DataGridViewAutoSizeModeEventArgs.cs
- StrongNameIdentityPermission.cs
- TextDecoration.cs
- safex509handles.cs
- assertwrapper.cs
- ArcSegment.cs
- VisualStyleTypesAndProperties.cs
- ConnectionConsumerAttribute.cs
- validationstate.cs
- DbSetClause.cs
- MenuItemCollection.cs
- SecurityTimestamp.cs
- CatalogPartChrome.cs
- ToolboxItem.cs
- ProxyGenerator.cs
- GenericsInstances.cs
- ReachDocumentReferenceCollectionSerializer.cs
- StrokeCollectionDefaultValueFactory.cs
- CheckBoxFlatAdapter.cs
- CommonXSendMessage.cs
- LoginUtil.cs
- SimpleType.cs
- SystemThemeKey.cs
- HyperLinkField.cs
- MulticastNotSupportedException.cs
- _ListenerRequestStream.cs
- WebPartEditorCancelVerb.cs
- ObjectAnimationUsingKeyFrames.cs
- _SafeNetHandles.cs
- SimpleTextLine.cs
- SecurityUtils.cs
- FocusWithinProperty.cs
- GenerateTemporaryAssemblyTask.cs
- FromReply.cs
- ScrollChangedEventArgs.cs
- X509Certificate2.cs
- HttpModulesSection.cs
- Visual3D.cs
- ScrollChrome.cs
- WebPartPersonalization.cs
- DataObject.cs
- HttpRuntime.cs
- ToolStripManager.cs
- CryptoKeySecurity.cs
- EmptyCollection.cs
- AvtEvent.cs
- ToolboxCategory.cs
- WebPartConnectionsConfigureVerb.cs
- ObjectResult.cs
- MarshalDirectiveException.cs
- ipaddressinformationcollection.cs
- XmlWriterSettings.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- ZipIOBlockManager.cs
- UmAlQuraCalendar.cs
- OutOfMemoryException.cs
- ActiveDocumentEvent.cs
- SourceFilter.cs
- ColumnResult.cs
- StrongNameUtility.cs
- BinaryNode.cs
- DrawingDrawingContext.cs
- GPPOINTF.cs
- CustomAttributeFormatException.cs
- TableLayoutSettingsTypeConverter.cs
- HebrewCalendar.cs
- SiteMapNode.cs
- SearchForVirtualItemEventArgs.cs
- IBuiltInEvidence.cs
- Timer.cs
- EmptyElement.cs
- DataBindingCollection.cs
- serverconfig.cs
- EntityModelBuildProvider.cs
- WindowShowOrOpenTracker.cs
- CompiledQuery.cs
- PrefixQName.cs
- XPathNodeIterator.cs