Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / WebBrowserNavigatingEventHandler.cs / 1305376 / WebBrowserNavigatingEventHandler.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
using System.Net;
using System.ComponentModel;
namespace System.Windows.Forms {
///
///
///
/// Delegate to the WebBrowser Navigating event.
///
///
public delegate void WebBrowserNavigatingEventHandler(object sender, WebBrowserNavigatingEventArgs e);
///
///
///
/// Provides data for the event.
///
///
public class WebBrowserNavigatingEventArgs : CancelEventArgs {
private Uri url;
private string targetFrameName;
///
///
///
/// Creates an instance of the class.
///
///
public WebBrowserNavigatingEventArgs(Uri url, string targetFrameName) {
this.url = url;
this.targetFrameName = targetFrameName;
}
///
///
///
/// Url the browser is navigating to.
///
///
public Uri Url {
get {
WebBrowser.EnsureUrlConnectPermission(url);
return this.url;
}
}
///
///
///
/// In case an individual frame is about to be navigated, this contains the frame name.
///
///
public string TargetFrameName {
get {
WebBrowser.EnsureUrlConnectPermission(url);
return this.targetFrameName;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CurrencyWrapper.cs
- DataGridViewCellConverter.cs
- QuestionEventArgs.cs
- DataGridAutoFormatDialog.cs
- PropertyMap.cs
- DefaultValueConverter.cs
- Partitioner.cs
- BindingContext.cs
- AddingNewEventArgs.cs
- TreeNodeBindingCollection.cs
- DecoderBestFitFallback.cs
- ApplicationId.cs
- TextPointerBase.cs
- SignatureHelper.cs
- WindowsAuthenticationModule.cs
- PowerStatus.cs
- WebEncodingValidator.cs
- ToolStripInSituService.cs
- SqlDataSourceCommandParser.cs
- AvTrace.cs
- CodeDirectoryCompiler.cs
- XNodeNavigator.cs
- ContextBase.cs
- CodeRemoveEventStatement.cs
- DebugView.cs
- CompressStream.cs
- NullRuntimeConfig.cs
- ActiveXHost.cs
- HMACRIPEMD160.cs
- FixedPage.cs
- Win32KeyboardDevice.cs
- Model3DCollection.cs
- EffectiveValueEntry.cs
- SAPICategories.cs
- TypeLibraryHelper.cs
- UrlPath.cs
- Collection.cs
- COM2AboutBoxPropertyDescriptor.cs
- ImageCodecInfoPrivate.cs
- SynchronizedInputHelper.cs
- XmlNodeChangedEventManager.cs
- ArraySegment.cs
- IncrementalReadDecoders.cs
- HtmlTableCellCollection.cs
- NavigationHelper.cs
- SubqueryRules.cs
- SendKeys.cs
- handlecollector.cs
- NavigationPropertySingletonExpression.cs
- BCryptHashAlgorithm.cs
- RowVisual.cs
- IISUnsafeMethods.cs
- TileBrush.cs
- SchemaObjectWriter.cs
- TypeUsageBuilder.cs
- BitmapEffectInput.cs
- NullReferenceException.cs
- DirectoryNotFoundException.cs
- DocumentAutomationPeer.cs
- DesignSurfaceCollection.cs
- BamlLocalizableResource.cs
- ToolStripSplitStackLayout.cs
- ToolStripPanel.cs
- GenericXmlSecurityTokenAuthenticator.cs
- DynamicArgumentDesigner.xaml.cs
- XmlRawWriter.cs
- SystemIPv4InterfaceProperties.cs
- SemanticResolver.cs
- ADMembershipProvider.cs
- TableParagraph.cs
- SizeChangedInfo.cs
- SynchronousChannelMergeEnumerator.cs
- ErrorHandlingAcceptor.cs
- StringFormat.cs
- AtomMaterializerLog.cs
- CredentialManagerDialog.cs
- TextParagraphCache.cs
- SecurityState.cs
- CodeConstructor.cs
- TableDesigner.cs
- OdbcReferenceCollection.cs
- ListBox.cs
- altserialization.cs
- QueryOutputWriter.cs
- TrustLevel.cs
- CodePageUtils.cs
- TcpServerChannel.cs
- ValueQuery.cs
- OdbcParameter.cs
- ReadOnlyCollection.cs
- MaterialGroup.cs
- TypeElement.cs
- TypeUtils.cs
- GacUtil.cs
- FlatButtonAppearance.cs
- OrderablePartitioner.cs
- StorageComplexPropertyMapping.cs
- WebPartZoneBase.cs
- basenumberconverter.cs
- ProcessHostMapPath.cs