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
- CacheVirtualItemsEvent.cs
- DoWorkEventArgs.cs
- TextSerializer.cs
- ValidationError.cs
- FontCacheLogic.cs
- NaturalLanguageHyphenator.cs
- TextServicesContext.cs
- ToolStripButton.cs
- TemplateField.cs
- TemplatedControlDesigner.cs
- CalendarButtonAutomationPeer.cs
- DataGridViewCellStyleConverter.cs
- JapaneseLunisolarCalendar.cs
- SQLMoney.cs
- BinaryCommonClasses.cs
- FileSystemWatcher.cs
- XamlTypeMapper.cs
- DataTableNewRowEvent.cs
- TemplateBindingExpression.cs
- CellLabel.cs
- ProvidePropertyAttribute.cs
- ClientBuildManager.cs
- UnsafeNativeMethods.cs
- IdSpace.cs
- ToolBarOverflowPanel.cs
- XmlReaderSettings.cs
- RowType.cs
- ObjRef.cs
- TextCollapsingProperties.cs
- AccessKeyManager.cs
- Ops.cs
- ECDiffieHellmanPublicKey.cs
- QilDataSource.cs
- ElementMarkupObject.cs
- InputElement.cs
- ControlEvent.cs
- CodeSnippetCompileUnit.cs
- SizeValueSerializer.cs
- AccessibleObject.cs
- StructuredTypeEmitter.cs
- ReferenceSchema.cs
- ErrorWebPart.cs
- DummyDataSource.cs
- RadioButtonList.cs
- StreamReader.cs
- TraceHandlerErrorFormatter.cs
- EntityModelSchemaGenerator.cs
- TextBreakpoint.cs
- ProtocolsConfiguration.cs
- DateTimeStorage.cs
- SoapAttributeOverrides.cs
- RulePatternOps.cs
- PaperSize.cs
- ConfigurationStrings.cs
- DataColumn.cs
- SupportsEventValidationAttribute.cs
- Style.cs
- ItemCheckedEvent.cs
- DownloadProgressEventArgs.cs
- HttpCacheVary.cs
- EmptyControlCollection.cs
- SiteMapNodeItemEventArgs.cs
- CustomErrorsSection.cs
- DefinitionBase.cs
- PropertyMap.cs
- EntityDataSourceDesignerHelper.cs
- MouseActionConverter.cs
- InfoCardKeyedHashAlgorithm.cs
- updatecommandorderer.cs
- DockingAttribute.cs
- IPipelineRuntime.cs
- SqlTypeSystemProvider.cs
- InputEventArgs.cs
- ConnectorMovedEventArgs.cs
- XmlElementAttributes.cs
- DrawTreeNodeEventArgs.cs
- ProfileModule.cs
- PaintValueEventArgs.cs
- LinqDataSourceEditData.cs
- QueueProcessor.cs
- SemanticResolver.cs
- HtmlDocument.cs
- ApplicationHost.cs
- SqlDataRecord.cs
- DescendentsWalkerBase.cs
- OracleParameter.cs
- SoapTypeAttribute.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- ToolStripAdornerWindowService.cs
- TagPrefixAttribute.cs
- ListViewGroupConverter.cs
- ControlParameter.cs
- HandlerMappingMemo.cs
- DefaultBinder.cs
- UIServiceHelper.cs
- SpecialFolderEnumConverter.cs
- AsymmetricSecurityBindingElement.cs
- ObjectDataSourceWizardForm.cs
- LineServices.cs
- ReflectionUtil.cs