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
- TriggerBase.cs
- XmlWellformedWriter.cs
- DesignerMetadata.cs
- sqlinternaltransaction.cs
- ChildTable.cs
- TreeViewItemAutomationPeer.cs
- FixedTextContainer.cs
- CustomMenuItemCollection.cs
- TaiwanLunisolarCalendar.cs
- DiscardableAttribute.cs
- WorkflowQueue.cs
- SourceFilter.cs
- ActivitySurrogate.cs
- PersonalizableAttribute.cs
- DesignerDataTable.cs
- COM2FontConverter.cs
- XmlAutoDetectWriter.cs
- ProxyWebPartManager.cs
- IntegerValidator.cs
- TdsParserStateObject.cs
- SqlGenericUtil.cs
- TypeSemantics.cs
- DropTarget.cs
- ScalarConstant.cs
- ListViewItemMouseHoverEvent.cs
- CustomValidator.cs
- PerformanceCounterPermissionEntry.cs
- Menu.cs
- CompressStream.cs
- ToolStripItemRenderEventArgs.cs
- FigureHelper.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- SolidColorBrush.cs
- GetWinFXPath.cs
- Shape.cs
- SortedSetDebugView.cs
- WizardPanelChangingEventArgs.cs
- CacheDependency.cs
- AddingNewEventArgs.cs
- ClientData.cs
- ComboBoxAutomationPeer.cs
- OSEnvironmentHelper.cs
- TableItemProviderWrapper.cs
- ListBoxChrome.cs
- FrameworkContentElement.cs
- EntityFrameworkVersions.cs
- MSAAWinEventWrap.cs
- DependsOnAttribute.cs
- ValidationError.cs
- ScrollPattern.cs
- BitSet.cs
- RolePrincipal.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- InvokeBase.cs
- TransformedBitmap.cs
- TimerElapsedEvenArgs.cs
- CharacterString.cs
- FormViewUpdateEventArgs.cs
- PreservationFileWriter.cs
- RequestCache.cs
- PermissionSet.cs
- httpstaticobjectscollection.cs
- DbReferenceCollection.cs
- DetailsViewRow.cs
- MessagePropertyDescription.cs
- ScriptingScriptResourceHandlerSection.cs
- ToggleProviderWrapper.cs
- DataRowChangeEvent.cs
- DependencyPropertyConverter.cs
- EditorPartCollection.cs
- TextPattern.cs
- sqlser.cs
- DefaultValueTypeConverter.cs
- NTAccount.cs
- DesignerActionItem.cs
- CurrentTimeZone.cs
- SoapCommonClasses.cs
- BaseResourcesBuildProvider.cs
- sqlcontext.cs
- PhonemeConverter.cs
- DataGridToolTip.cs
- Vector3DKeyFrameCollection.cs
- RuntimeResourceSet.cs
- TrueReadOnlyCollection.cs
- CatalogPartChrome.cs
- ToolStripHighContrastRenderer.cs
- panel.cs
- Invariant.cs
- WebPartsSection.cs
- xsdvalidator.cs
- DataTableNewRowEvent.cs
- ByteConverter.cs
- DataBindingHandlerAttribute.cs
- ProtocolsConfiguration.cs
- CodeTypeReferenceExpression.cs
- BuilderElements.cs
- SourceElementsCollection.cs
- Vector3DIndependentAnimationStorage.cs
- BitmapImage.cs
- ModelProperty.cs