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
- EntityContainerEntitySetDefiningQuery.cs
- TableRowGroupCollection.cs
- Button.cs
- StylusEventArgs.cs
- AppSettingsExpressionBuilder.cs
- NameNode.cs
- SiteMapNodeItem.cs
- PointAnimationUsingPath.cs
- AnimationClock.cs
- DesignerValidatorAdapter.cs
- ChildrenQuery.cs
- XmlObjectSerializerReadContextComplexJson.cs
- SafeNativeMethodsOther.cs
- XamlToRtfParser.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- ListViewDataItem.cs
- ThreadAttributes.cs
- EventLogConfiguration.cs
- DBDataPermission.cs
- Point3DIndependentAnimationStorage.cs
- GridViewRowEventArgs.cs
- SingleTagSectionHandler.cs
- MultiAsyncResult.cs
- RSAOAEPKeyExchangeDeformatter.cs
- NamedObject.cs
- TextElementCollection.cs
- TreeView.cs
- CustomWebEventKey.cs
- QilExpression.cs
- IndexedSelectQueryOperator.cs
- SessionParameter.cs
- GridItemProviderWrapper.cs
- RequestQueue.cs
- EmptyCollection.cs
- List.cs
- EditorOptionAttribute.cs
- ServiceHttpHandlerFactory.cs
- DocobjHost.cs
- SkipStoryboardToFill.cs
- ProcessExitedException.cs
- CodeCommentStatementCollection.cs
- ControlIdConverter.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- ColumnBinding.cs
- metadatamappinghashervisitor.cs
- DescendantQuery.cs
- SoundPlayer.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- MediaPlayer.cs
- WsdlBuildProvider.cs
- IsolatedStorage.cs
- CategoryAttribute.cs
- LinearKeyFrames.cs
- DataSet.cs
- C14NUtil.cs
- SkewTransform.cs
- LoadedEvent.cs
- UnsafeNativeMethods.cs
- PageThemeBuildProvider.cs
- LookupBindingPropertiesAttribute.cs
- IntAverageAggregationOperator.cs
- Setter.cs
- GenericTransactionFlowAttribute.cs
- AstNode.cs
- IPEndPoint.cs
- MetadataPropertyvalue.cs
- StyleBamlTreeBuilder.cs
- CodeTypeReferenceCollection.cs
- FacetValueContainer.cs
- DbException.cs
- TextSchema.cs
- DataControlHelper.cs
- ValueUtilsSmi.cs
- Pens.cs
- PropertyDescriptor.cs
- CryptoHandle.cs
- SmtpException.cs
- StyleHelper.cs
- Attachment.cs
- CachedPathData.cs
- InvalidAsynchronousStateException.cs
- ProtocolElementCollection.cs
- GradientBrush.cs
- InvalidPropValue.cs
- WebPartVerbCollection.cs
- TextServicesDisplayAttribute.cs
- ProfileInfo.cs
- StaticSiteMapProvider.cs
- cookieexception.cs
- OLEDB_Util.cs
- UserControl.cs
- RecordManager.cs
- ProviderCommandInfoUtils.cs
- ChameleonKey.cs
- PageAdapter.cs
- ClientRolePrincipal.cs
- ContainerFilterService.cs
- TextContainerHelper.cs
- ConnectionManagementElementCollection.cs
- MatrixTransform3D.cs