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
- Compiler.cs
- BitmapEffectInput.cs
- CodeGotoStatement.cs
- PassportPrincipal.cs
- HttpListenerResponse.cs
- MappingItemCollection.cs
- ItemsChangedEventArgs.cs
- IssuedTokenClientElement.cs
- OdbcConnectionHandle.cs
- CommonDialog.cs
- coordinatorscratchpad.cs
- FieldInfo.cs
- SmiContext.cs
- InternalPermissions.cs
- XmlSchemaAnyAttribute.cs
- GregorianCalendar.cs
- BitmapDecoder.cs
- ResourceDescriptionAttribute.cs
- ScrollableControl.cs
- CompilerCollection.cs
- CapabilitiesState.cs
- FileRecordSequenceCompletedAsyncResult.cs
- IDQuery.cs
- Point3D.cs
- _Events.cs
- CommonDialog.cs
- PriorityBindingExpression.cs
- ManagementObject.cs
- FixedElement.cs
- HttpBrowserCapabilitiesBase.cs
- NamespaceDecl.cs
- Columns.cs
- RC2CryptoServiceProvider.cs
- LineSegment.cs
- FontWeight.cs
- HttpException.cs
- SemaphoreFullException.cs
- TimeoutValidationAttribute.cs
- __Filters.cs
- WebPartRestoreVerb.cs
- ColumnResult.cs
- BaseComponentEditor.cs
- InstanceBehavior.cs
- RSAPKCS1SignatureFormatter.cs
- ValidatingReaderNodeData.cs
- Wizard.cs
- QfeChecker.cs
- RegexNode.cs
- XPathItem.cs
- HtmlForm.cs
- SQLGuid.cs
- FormParameter.cs
- MatrixKeyFrameCollection.cs
- FixUp.cs
- HttpWriter.cs
- Parameter.cs
- LostFocusEventManager.cs
- FindCompletedEventArgs.cs
- GridToolTip.cs
- AtomicFile.cs
- ConnectionOrientedTransportElement.cs
- NgenServicingAttributes.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- PrimitiveXmlSerializers.cs
- mediaclock.cs
- ConfigurationPermission.cs
- XmlWrappingReader.cs
- AVElementHelper.cs
- StringUtil.cs
- DecimalStorage.cs
- AlphaSortedEnumConverter.cs
- TextEditorCharacters.cs
- ServiceHttpModule.cs
- ToolStripOverflow.cs
- DisableDpiAwarenessAttribute.cs
- basemetadatamappingvisitor.cs
- MsmqTransportElement.cs
- CompilationLock.cs
- CellTreeNode.cs
- QilTernary.cs
- XPathEmptyIterator.cs
- PolicyStatement.cs
- RootAction.cs
- SimpleRecyclingCache.cs
- InvokePattern.cs
- TreeNodeBinding.cs
- Timer.cs
- SchemaEntity.cs
- AssemblySettingAttributes.cs
- TextWriterEngine.cs
- TextServicesContext.cs
- SrgsElementList.cs
- HttpInputStream.cs
- MessageEncoderFactory.cs
- XPathAncestorQuery.cs
- HttpListenerRequest.cs
- XmlIncludeAttribute.cs
- OdbcConnectionFactory.cs
- EDesignUtil.cs
- StopRoutingHandler.cs