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 the event.
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
- ConsoleEntryPoint.cs
- CallSiteOps.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ReadWriteObjectLock.cs
- ReachPageContentSerializer.cs
- IpcPort.cs
- AsymmetricAlgorithm.cs
- RequestQueryParser.cs
- ViewStateChangedEventArgs.cs
- input.cs
- Mutex.cs
- LocalizationCodeDomSerializer.cs
- ForceCopyBuildProvider.cs
- OdbcCommand.cs
- MemoryStream.cs
- PageAdapter.cs
- ClientSideQueueItem.cs
- Pair.cs
- XmlAttributes.cs
- SendParametersContent.cs
- CompatibleIComparer.cs
- XmlAttributeHolder.cs
- PolyBezierSegment.cs
- SecUtil.cs
- ClientTargetCollection.cs
- DbConnectionFactory.cs
- MetafileHeader.cs
- HttpModuleAction.cs
- Int64Animation.cs
- FocusTracker.cs
- BaseCollection.cs
- PropertyEmitter.cs
- WindowsListBox.cs
- XsdCachingReader.cs
- RelatedView.cs
- TextFormatterContext.cs
- ListSurrogate.cs
- ToolStripComboBox.cs
- FlowDocumentPaginator.cs
- AdjustableArrowCap.cs
- AsymmetricKeyExchangeDeformatter.cs
- TextEditorThreadLocalStore.cs
- Tracking.cs
- SqlMultiplexer.cs
- HandleRef.cs
- Int32AnimationBase.cs
- DtcInterfaces.cs
- XmlMtomReader.cs
- GenericWebPart.cs
- ObjectDisposedException.cs
- shaperfactoryquerycachekey.cs
- AsyncPostBackTrigger.cs
- RemotingServices.cs
- PageHandlerFactory.cs
- JsonWriter.cs
- LocatorBase.cs
- StringSorter.cs
- ScrollBarRenderer.cs
- RemoteWebConfigurationHostServer.cs
- CheckBoxPopupAdapter.cs
- InProcStateClientManager.cs
- RestHandler.cs
- DependencyObjectPropertyDescriptor.cs
- GridViewRowEventArgs.cs
- NativeRecognizer.cs
- Assembly.cs
- X509CertificateInitiatorClientCredential.cs
- WizardStepBase.cs
- XmlDeclaration.cs
- ObjectStateEntryDbDataRecord.cs
- DataPagerFieldCollection.cs
- propertytag.cs
- NamedPipeConnectionPoolSettings.cs
- HtmlAnchor.cs
- TextDecorations.cs
- AccessKeyManager.cs
- AssemblyResourceLoader.cs
- ValueUnavailableException.cs
- SimpleType.cs
- ImageButton.cs
- GeometryGroup.cs
- ResourceReader.cs
- DataServicePagingProviderWrapper.cs
- KeyValuePairs.cs
- DynamicUpdateCommand.cs
- FSWPathEditor.cs
- DesigntimeLicenseContext.cs
- PropertyToken.cs
- InvalidEnumArgumentException.cs
- _PooledStream.cs
- TraceSwitch.cs
- FragmentQuery.cs
- WindowsAuthenticationEventArgs.cs
- TextPointer.cs
- ArgIterator.cs
- ThousandthOfEmRealDoubles.cs
- StopRoutingHandler.cs
- ContextItem.cs
- WorkflowInstanceExtensionManager.cs
- BitSet.cs