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
- validationstate.cs
- AdRotator.cs
- NumberFunctions.cs
- MenuEventArgs.cs
- CreateUserErrorEventArgs.cs
- DesignerView.xaml.cs
- StorageModelBuildProvider.cs
- CngAlgorithm.cs
- FragmentNavigationEventArgs.cs
- ConvertEvent.cs
- PointLightBase.cs
- FileDialogPermission.cs
- FunctionDescription.cs
- ToolStripRenderer.cs
- DeviceContext.cs
- _HTTPDateParse.cs
- SerializeAbsoluteContext.cs
- EditorZoneDesigner.cs
- Util.cs
- MbpInfo.cs
- ReadOnlyDataSource.cs
- CodeAttributeArgument.cs
- AuthenticatedStream.cs
- FormDesigner.cs
- ProxyHwnd.cs
- DataGridViewCellStyleChangedEventArgs.cs
- EdmMember.cs
- SchemaUtility.cs
- WebPartConnectionCollection.cs
- DesignerObjectListAdapter.cs
- WinEventTracker.cs
- SoapCodeExporter.cs
- IDReferencePropertyAttribute.cs
- RenderCapability.cs
- SettingsSavedEventArgs.cs
- TimeIntervalCollection.cs
- DynamicEntity.cs
- WindowsPrincipal.cs
- SqlStatistics.cs
- RuntimeVariableList.cs
- LayoutUtils.cs
- SecurityTokenValidationException.cs
- HttpFileCollection.cs
- ApplicationContext.cs
- StrongTypingException.cs
- DataGridViewColumnCollection.cs
- LineServices.cs
- TdsRecordBufferSetter.cs
- SecurityTokenSpecification.cs
- HierarchicalDataTemplate.cs
- XmlSchemaComplexContentRestriction.cs
- ListViewGroup.cs
- SqlOuterApplyReducer.cs
- InstanceNormalEvent.cs
- COMException.cs
- RootBrowserWindowProxy.cs
- BaseCodeDomTreeGenerator.cs
- PageAsyncTask.cs
- ProcessModelSection.cs
- MessageDirection.cs
- WindowsImpersonationContext.cs
- RowParagraph.cs
- FocusTracker.cs
- BoundField.cs
- ListViewItemEventArgs.cs
- SchemaImporterExtension.cs
- PersonalizablePropertyEntry.cs
- XmlDocumentType.cs
- GeneralTransform3D.cs
- CultureData.cs
- _BufferOffsetSize.cs
- Bidi.cs
- PropertyItem.cs
- TextDpi.cs
- SystemInfo.cs
- TableAdapterManagerGenerator.cs
- SafeNativeMethods.cs
- ScrollBarAutomationPeer.cs
- SqlBooleanMismatchVisitor.cs
- OleDbCommand.cs
- SqlReferenceCollection.cs
- ParameterModifier.cs
- AnnotationResource.cs
- XmlCDATASection.cs
- CodeCompileUnit.cs
- DependencyPropertyChangedEventArgs.cs
- DoubleLink.cs
- ListManagerBindingsCollection.cs
- RouteUrlExpressionBuilder.cs
- CommandLineParser.cs
- InvalidPropValue.cs
- FontStretch.cs
- TraceContextRecord.cs
- SignedPkcs7.cs
- XmlAggregates.cs
- FrameSecurityDescriptor.cs
- DataRowChangeEvent.cs
- TraceHandlerErrorFormatter.cs
- BinHexDecoder.cs
- FileSystemWatcher.cs