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
- RadioButtonStandardAdapter.cs
- Merger.cs
- ScrollBar.cs
- RuleProcessor.cs
- AbstractDataSvcMapFileLoader.cs
- MethodRental.cs
- EncryptedXml.cs
- TagNameToTypeMapper.cs
- ControlBindingsCollection.cs
- XmlSchemaSubstitutionGroup.cs
- OracleRowUpdatedEventArgs.cs
- XmlSchemaAnnotated.cs
- EventLogQuery.cs
- ListViewItem.cs
- SiteMapDataSource.cs
- XmlSerializerVersionAttribute.cs
- ScopelessEnumAttribute.cs
- TemplateKey.cs
- WebPartCancelEventArgs.cs
- CodeSubDirectoriesCollection.cs
- LabelInfo.cs
- CodeCastExpression.cs
- TextBox.cs
- EntityDataSourceReferenceGroup.cs
- NotifyInputEventArgs.cs
- PageThemeCodeDomTreeGenerator.cs
- SpecialFolderEnumConverter.cs
- ControlCollection.cs
- HttpRuntime.cs
- StatusBarItemAutomationPeer.cs
- IdentitySection.cs
- ExtensionSurface.cs
- DataPagerFieldCommandEventArgs.cs
- StoragePropertyMapping.cs
- ProviderManager.cs
- FontWeights.cs
- DocumentGridPage.cs
- ArrangedElementCollection.cs
- EventLog.cs
- EnumerableRowCollection.cs
- TextProperties.cs
- CompilerHelpers.cs
- Console.cs
- AudienceUriMode.cs
- InlineUIContainer.cs
- Validator.cs
- AlphabetConverter.cs
- __Filters.cs
- WorkflowServiceHost.cs
- OutputCacheProfile.cs
- DataGridCell.cs
- DrawingContextWalker.cs
- CustomError.cs
- _ListenerAsyncResult.cs
- JsonQNameDataContract.cs
- ThumbAutomationPeer.cs
- SpeakProgressEventArgs.cs
- RemotingAttributes.cs
- XsltContext.cs
- wpf-etw.cs
- SystemIPGlobalProperties.cs
- SystemResourceKey.cs
- Keyboard.cs
- TextRangeEditTables.cs
- ResourcePool.cs
- TableRowGroup.cs
- SQLInt64.cs
- propertytag.cs
- UnrecognizedPolicyAssertionElement.cs
- SiteMapHierarchicalDataSourceView.cs
- Single.cs
- HyperLink.cs
- cookie.cs
- SafeRightsManagementPubHandle.cs
- Point3DCollectionValueSerializer.cs
- RelAssertionDirectKeyIdentifierClause.cs
- StreamResourceInfo.cs
- WizardPanelChangingEventArgs.cs
- DataSet.cs
- XmlElementAttributes.cs
- TypeLoadException.cs
- tabpagecollectioneditor.cs
- CharUnicodeInfo.cs
- SqlError.cs
- xdrvalidator.cs
- GeneralTransform3D.cs
- JsonClassDataContract.cs
- DiagnosticTraceSource.cs
- ExpandSegment.cs
- WebControlAdapter.cs
- DeploymentExceptionMapper.cs
- SHA256Managed.cs
- CompilationUtil.cs
- LinqDataSourceDisposeEventArgs.cs
- QilInvokeEarlyBound.cs
- LinkArea.cs
- NameValuePermission.cs
- XamlFigureLengthSerializer.cs
- AspProxy.cs
- Wizard.cs