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
- PaperSource.cs
- Exceptions.cs
- GenerateScriptTypeAttribute.cs
- XmlSchemaFacet.cs
- VectorConverter.cs
- RequestContext.cs
- GetCertificateRequest.cs
- NumberAction.cs
- WSHttpSecurity.cs
- ScriptManagerProxy.cs
- NameValueConfigurationCollection.cs
- LogRecordSequence.cs
- IndependentAnimationStorage.cs
- OutputScope.cs
- SplineKeyFrames.cs
- webproxy.cs
- ToolTipAutomationPeer.cs
- CanonicalFontFamilyReference.cs
- ThumbButtonInfoCollection.cs
- BitmapFrame.cs
- ControlsConfig.cs
- WindowsMenu.cs
- NavigatingCancelEventArgs.cs
- SqlConnectionPoolProviderInfo.cs
- WinFormsUtils.cs
- DataError.cs
- ToolStripDropTargetManager.cs
- FullTextLine.cs
- ResourceSet.cs
- _SecureChannel.cs
- WebEvents.cs
- PolicyStatement.cs
- ParseChildrenAsPropertiesAttribute.cs
- EmissiveMaterial.cs
- RichTextBoxConstants.cs
- XmlEncoding.cs
- MenuItemStyle.cs
- NumericExpr.cs
- OuterGlowBitmapEffect.cs
- DropShadowBitmapEffect.cs
- HtmlMeta.cs
- GenericTextProperties.cs
- ExtensionFile.cs
- ToolStripSeparatorRenderEventArgs.cs
- XamlRtfConverter.cs
- GAC.cs
- Formatter.cs
- HtmlElementCollection.cs
- StyleCollection.cs
- SchemaName.cs
- ProxyAssemblyNotLoadedException.cs
- ActivityInterfaces.cs
- RepeaterDesigner.cs
- ServiceCredentialsElement.cs
- EntityDescriptor.cs
- MemoryMappedViewAccessor.cs
- RoutingExtension.cs
- BuildResultCache.cs
- RadioButtonRenderer.cs
- EntryWrittenEventArgs.cs
- GeneralTransformGroup.cs
- WmlSelectionListAdapter.cs
- DockEditor.cs
- RowParagraph.cs
- ConfigurationPropertyCollection.cs
- wgx_commands.cs
- Assembly.cs
- DrawingContextDrawingContextWalker.cs
- TimersDescriptionAttribute.cs
- DataGridViewControlCollection.cs
- StorageEntityContainerMapping.cs
- HttpCapabilitiesEvaluator.cs
- ControlValuePropertyAttribute.cs
- ServiceOperationUIEditor.cs
- CmsInterop.cs
- IOException.cs
- EventData.cs
- DataGridLengthConverter.cs
- AssertValidation.cs
- ExceptionUtil.cs
- FtpWebRequest.cs
- BinaryKeyIdentifierClause.cs
- SignatureConfirmations.cs
- SkinIDTypeConverter.cs
- FlowDocumentFormatter.cs
- SqlStatistics.cs
- XmlSerializerSection.cs
- NodeLabelEditEvent.cs
- WebResponse.cs
- IntellisenseTextBox.designer.cs
- BindingSource.cs
- DataServiceResponse.cs
- XmlSerializationReader.cs
- RuntimeResourceSet.cs
- HtmlLink.cs
- WasEndpointConfigContainer.cs
- Quaternion.cs
- PowerStatus.cs
- AppDomainUnloadedException.cs
- GenericPrincipal.cs