Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / WinForms / Managed / System / WinForms / WebBrowserNavigatingEventHandler.cs / 1 / 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.
//------------------------------------------------------------------------------
//
// 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
- HTMLTagNameToTypeMapper.cs
- ExtensionSurface.cs
- SqlClientWrapperSmiStreamChars.cs
- CellIdBoolean.cs
- MappableObjectManager.cs
- DocumentAutomationPeer.cs
- SignedXml.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- CryptoApi.cs
- SqlDataSourceStatusEventArgs.cs
- FixedNode.cs
- TabControlEvent.cs
- SafeRightsManagementPubHandle.cs
- TryCatchDesigner.xaml.cs
- LocalizabilityAttribute.cs
- X509Certificate2Collection.cs
- CookieHandler.cs
- _NegotiateClient.cs
- VariableReference.cs
- EntityCommand.cs
- SystemMulticastIPAddressInformation.cs
- DocumentManager.cs
- DiagnosticsElement.cs
- SqlError.cs
- XmlIncludeAttribute.cs
- BamlRecordReader.cs
- AlgoModule.cs
- ChtmlImageAdapter.cs
- MemberMaps.cs
- StatusBarItemAutomationPeer.cs
- BinaryFormatter.cs
- CaseInsensitiveComparer.cs
- WindowInteropHelper.cs
- SqlProviderManifest.cs
- HandlerElementCollection.cs
- DataGridRelationshipRow.cs
- ScriptResourceInfo.cs
- Scripts.cs
- PenThreadPool.cs
- ProcessHostMapPath.cs
- XmlResolver.cs
- Hyperlink.cs
- DataGridViewCellStyleChangedEventArgs.cs
- SplashScreen.cs
- ResponseBodyWriter.cs
- InternalTypeHelper.cs
- KeyNotFoundException.cs
- Pair.cs
- TextEditorParagraphs.cs
- RelatedImageListAttribute.cs
- XmlSchemaObjectTable.cs
- MenuItemAutomationPeer.cs
- FormViewPageEventArgs.cs
- HostingEnvironment.cs
- SqlCommandBuilder.cs
- DocumentPageTextView.cs
- FormsAuthenticationUser.cs
- NonParentingControl.cs
- DocumentReference.cs
- ExclusiveTcpTransportManager.cs
- FileUtil.cs
- QueuePropertyVariants.cs
- WhereaboutsReader.cs
- DiscreteKeyFrames.cs
- TextRange.cs
- NumberAction.cs
- DoubleLinkListEnumerator.cs
- ConstraintManager.cs
- DataContractJsonSerializerOperationBehavior.cs
- Timeline.cs
- AsymmetricCryptoHandle.cs
- HtmlTextBoxAdapter.cs
- SyntaxCheck.cs
- AccessibleObject.cs
- HttpListenerPrefixCollection.cs
- _Connection.cs
- CodeDOMProvider.cs
- InternalTypeHelper.cs
- WindowsTokenRoleProvider.cs
- EdmItemError.cs
- ClientScriptManagerWrapper.cs
- SmtpNtlmAuthenticationModule.cs
- Clipboard.cs
- DropShadowEffect.cs
- AdornedElementPlaceholder.cs
- ReturnValue.cs
- TypeForwardedFromAttribute.cs
- ContentPresenter.cs
- AppDomainInstanceProvider.cs
- HostProtectionPermission.cs
- Context.cs
- MutexSecurity.cs
- TreeViewBindingsEditor.cs
- unitconverter.cs
- LowerCaseStringConverter.cs
- SiteMapProvider.cs
- VersionedStream.cs
- TrackingLocationCollection.cs
- EventData.cs
- SrgsRuleRef.cs