Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- DataPagerFieldCommandEventArgs.cs
- XDRSchema.cs
- NotifyInputEventArgs.cs
- Activity.cs
- CompositeActivityTypeDescriptor.cs
- DataGridViewImageColumn.cs
- CommandLibraryHelper.cs
- BackgroundFormatInfo.cs
- MSG.cs
- TypeConverterHelper.cs
- ConsoleTraceListener.cs
- CommandHelper.cs
- ObjectPropertyMapping.cs
- BinaryConverter.cs
- ComponentCommands.cs
- DataObjectMethodAttribute.cs
- HostedBindingBehavior.cs
- RenderContext.cs
- SparseMemoryStream.cs
- SelectionWordBreaker.cs
- bidPrivateBase.cs
- JapaneseCalendar.cs
- FrugalMap.cs
- StrongNamePublicKeyBlob.cs
- TextRunProperties.cs
- BamlTreeUpdater.cs
- ToolstripProfessionalRenderer.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- FastEncoderWindow.cs
- Marshal.cs
- BooleanKeyFrameCollection.cs
- BrushMappingModeValidation.cs
- SingleAnimation.cs
- CodeArgumentReferenceExpression.cs
- _OSSOCK.cs
- ColorConverter.cs
- UpWmlPageAdapter.cs
- RequiredFieldValidator.cs
- TextDecoration.cs
- ReadOnlyHierarchicalDataSource.cs
- AppSettingsReader.cs
- WebContext.cs
- ResourceSetExpression.cs
- xmlfixedPageInfo.cs
- DataGridViewDataErrorEventArgs.cs
- MetafileHeader.cs
- ListViewGroupConverter.cs
- GAC.cs
- SpotLight.cs
- PropertyGrid.cs
- FutureFactory.cs
- Model3DGroup.cs
- ProviderException.cs
- MembershipPasswordException.cs
- DrawingImage.cs
- Freezable.cs
- SnapshotChangeTrackingStrategy.cs
- AuthenticationManager.cs
- String.cs
- TransactionScope.cs
- HotSpotCollection.cs
- TypeLibConverter.cs
- ScriptHandlerFactory.cs
- BooleanSwitch.cs
- KeyedCollection.cs
- CodeTypeParameter.cs
- BuildProviderUtils.cs
- ContextStaticAttribute.cs
- OperationResponse.cs
- ObjRef.cs
- ExpressionBindingsDialog.cs
- RequestCachingSection.cs
- DSASignatureFormatter.cs
- DotExpr.cs
- Padding.cs
- PointLightBase.cs
- FigureParaClient.cs
- DynamicDataRoute.cs
- DateTimeConverter2.cs
- securitycriticaldata.cs
- WindowPattern.cs
- SqlMethodAttribute.cs
- ValidatorUtils.cs
- hebrewshape.cs
- DetailsViewPagerRow.cs
- ExpressionBinding.cs
- ToolStripSeparator.cs
- CollectionViewGroupRoot.cs
- _SecureChannel.cs
- TableLayoutRowStyleCollection.cs
- ExecutionEngineException.cs
- CodeBinaryOperatorExpression.cs
- MultiDataTrigger.cs
- SecurityDocument.cs
- Subset.cs
- OleDbPropertySetGuid.cs
- ListControl.cs
- MobileContainerDesigner.cs
- CopyNodeSetAction.cs
- PolicyAssertionCollection.cs