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
- AnnotationAdorner.cs
- RenderingEventArgs.cs
- DataMember.cs
- DesignerOptions.cs
- PeerPresenceInfo.cs
- GradientBrush.cs
- ButtonBase.cs
- WSFederationHttpBindingElement.cs
- DesignerAttribute.cs
- DynamicDataRouteHandler.cs
- HttpCookiesSection.cs
- ArgIterator.cs
- ChooseAction.cs
- ViewService.cs
- OciHandle.cs
- ConcurrentDictionary.cs
- AttributeCollection.cs
- TraceUtils.cs
- BaseServiceProvider.cs
- AsyncOperationManager.cs
- WebPartConnectionsCancelVerb.cs
- HttpModuleAction.cs
- WrappedDispatcherException.cs
- ColorDialog.cs
- DataGridViewColumnCollection.cs
- ObjectViewFactory.cs
- WindowCollection.cs
- Configuration.cs
- SystemColorTracker.cs
- Grant.cs
- codemethodreferenceexpression.cs
- DataGridViewRowConverter.cs
- ObjectMemberMapping.cs
- FunctionCommandText.cs
- GridViewSortEventArgs.cs
- DataGridCell.cs
- MarkedHighlightComponent.cs
- ControlCachePolicy.cs
- PrePrepareMethodAttribute.cs
- WebPartZoneAutoFormat.cs
- DataTableMappingCollection.cs
- MainMenu.cs
- CornerRadius.cs
- NavigationPropertyEmitter.cs
- DesignerLinkAdapter.cs
- WasHostedComPlusFactory.cs
- TextBreakpoint.cs
- Int64AnimationBase.cs
- CharacterMetrics.cs
- util.cs
- SHA1Managed.cs
- WinEventTracker.cs
- ListBindingHelper.cs
- Single.cs
- WsdlImporterElementCollection.cs
- AvTrace.cs
- UrlMappingsSection.cs
- XhtmlBasicListAdapter.cs
- ParentUndoUnit.cs
- SectionVisual.cs
- XmlSerializerNamespaces.cs
- TdsParser.cs
- BindableAttribute.cs
- EventLogPermission.cs
- EncoderParameters.cs
- FileChangesMonitor.cs
- KeyTimeConverter.cs
- PointValueSerializer.cs
- DataSourceBooleanViewSchemaConverter.cs
- MonthCalendarDesigner.cs
- RegistrationServices.cs
- FormsAuthenticationModule.cs
- externdll.cs
- ContentOperations.cs
- DataListItemCollection.cs
- SqlServices.cs
- XmlBaseWriter.cs
- NamespaceInfo.cs
- VirtualDirectoryMappingCollection.cs
- WmlTextViewAdapter.cs
- UpdateException.cs
- CodeTypeDeclarationCollection.cs
- CapabilitiesPattern.cs
- FontUnit.cs
- XamlPathDataSerializer.cs
- DaylightTime.cs
- ClientScriptManager.cs
- ExternalCalls.cs
- CodeTypeDelegate.cs
- MetadataItemEmitter.cs
- CachedCompositeFamily.cs
- SwitchElementsCollection.cs
- SoapSchemaImporter.cs
- GlyphRunDrawing.cs
- XmlNamedNodeMap.cs
- UnsafeNativeMethods.cs
- HostingEnvironmentSection.cs
- TypeExtensionConverter.cs
- ModulesEntry.cs
- Zone.cs