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
- PersonalizationState.cs
- ConfigurationSchemaErrors.cs
- IResourceProvider.cs
- Roles.cs
- HtmlAnchor.cs
- StylusPointCollection.cs
- Material.cs
- GenericsInstances.cs
- DictionarySurrogate.cs
- FilterEventArgs.cs
- DataBoundControl.cs
- XmlTypeMapping.cs
- ObjectAnimationBase.cs
- CompositeTypefaceMetrics.cs
- TagPrefixAttribute.cs
- CompositeScriptReferenceEventArgs.cs
- TTSVoice.cs
- GridViewRowCollection.cs
- RelationshipEndMember.cs
- PassportAuthenticationEventArgs.cs
- Animatable.cs
- DataColumnMapping.cs
- TextSegment.cs
- TextWriterEngine.cs
- ExecutorLocksHeldException.cs
- TransportOutputChannel.cs
- HttpFileCollection.cs
- DynamicResourceExtensionConverter.cs
- connectionpool.cs
- RegionIterator.cs
- CachedFontFamily.cs
- CompiledIdentityConstraint.cs
- WorkflowDispatchContext.cs
- TextTreeTextBlock.cs
- BooleanFunctions.cs
- BinaryParser.cs
- SuspendDesigner.cs
- AsyncInvokeContext.cs
- WpfWebRequestHelper.cs
- Ray3DHitTestResult.cs
- SafeNativeMethodsCLR.cs
- PolicyException.cs
- CodeCastExpression.cs
- ReaderWriterLockSlim.cs
- TargetException.cs
- MemberProjectionIndex.cs
- ExpressionConverter.cs
- FilterUserControlBase.cs
- IItemContainerGenerator.cs
- DoubleAnimation.cs
- CriticalHandle.cs
- complextypematerializer.cs
- ContainerVisual.cs
- Transform3DGroup.cs
- SQLBinaryStorage.cs
- QilExpression.cs
- DataSourceNameHandler.cs
- DragSelectionMessageFilter.cs
- EdmTypeAttribute.cs
- TreeViewCancelEvent.cs
- ConnectionProviderAttribute.cs
- StrokeNodeData.cs
- SqlConnectionPoolGroupProviderInfo.cs
- EntityDataSourceDesigner.cs
- GeneralTransform2DTo3DTo2D.cs
- PenLineJoinValidation.cs
- DateTimeFormatInfo.cs
- CompiledELinqQueryState.cs
- HttpListenerResponse.cs
- PropagatorResult.cs
- WaitForChangedResult.cs
- DeviceContext.cs
- TogglePatternIdentifiers.cs
- DataGridTextBoxColumn.cs
- Assert.cs
- CapiSafeHandles.cs
- PassportPrincipal.cs
- GuidelineSet.cs
- DataGridRowsPresenter.cs
- ProfilePropertyMetadata.cs
- AbsoluteQuery.cs
- ListViewItemMouseHoverEvent.cs
- NegatedConstant.cs
- NameValueConfigurationCollection.cs
- IPCCacheManager.cs
- OrderedHashRepartitionStream.cs
- UriParserTemplates.cs
- SingletonInstanceContextProvider.cs
- FormatStringEditor.cs
- WebPartDisplayModeCollection.cs
- SymbolUsageManager.cs
- DataControlLinkButton.cs
- TypeLoadException.cs
- TextTreeInsertUndoUnit.cs
- ObjectStorage.cs
- SHA256.cs
- EventMappingSettingsCollection.cs
- NativeCppClassAttribute.cs
- HttpRuntimeSection.cs
- Attributes.cs