Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RequestResizeEvent.cs
- AdjustableArrowCap.cs
- OLEDB_Util.cs
- ClientUtils.cs
- XmlBindingWorker.cs
- MonthChangedEventArgs.cs
- LineInfo.cs
- CorrelationHandle.cs
- TransformProviderWrapper.cs
- AnimationStorage.cs
- QilStrConcatenator.cs
- SqlTypeConverter.cs
- Style.cs
- BuilderPropertyEntry.cs
- PerfCounterSection.cs
- LineVisual.cs
- Style.cs
- ExpressionsCollectionEditor.cs
- WindowsGraphicsCacheManager.cs
- ProgressPage.cs
- TableParagraph.cs
- DesignerSelectionListAdapter.cs
- ImageButton.cs
- TextFormatterContext.cs
- SapiAttributeParser.cs
- AggregateException.cs
- ListItemParagraph.cs
- DrawingVisual.cs
- AutomationPattern.cs
- ExtentKey.cs
- JsonReader.cs
- Fx.cs
- ApplicationDirectory.cs
- GridViewEditEventArgs.cs
- DesignColumnCollection.cs
- ActivityBindForm.cs
- HitTestWithPointDrawingContextWalker.cs
- DefaultValueTypeConverter.cs
- PrintDialogException.cs
- BuildResultCache.cs
- UnsafeNativeMethods.cs
- FaultBookmark.cs
- OleServicesContext.cs
- AssociationTypeEmitter.cs
- DocumentPageView.cs
- DocumentOrderComparer.cs
- StackSpiller.Generated.cs
- DBCSCodePageEncoding.cs
- WaitHandle.cs
- DbCommandTree.cs
- XmlWriter.cs
- StructuredProperty.cs
- InstanceCollisionException.cs
- XamlStyleSerializer.cs
- ObjectDisposedException.cs
- TraceContextEventArgs.cs
- ThreadLocal.cs
- BindingOperations.cs
- SqlDataAdapter.cs
- TreeSet.cs
- _NestedSingleAsyncResult.cs
- OrderedDictionary.cs
- DataObjectSettingDataEventArgs.cs
- TextBlock.cs
- ScriptBehaviorDescriptor.cs
- XsltSettings.cs
- ResourcePool.cs
- WebPartDisplayModeEventArgs.cs
- RunWorkerCompletedEventArgs.cs
- ColumnResult.cs
- UserControlBuildProvider.cs
- ConnectionManagementSection.cs
- TypeExtension.cs
- PropertyRecord.cs
- ComponentSerializationService.cs
- DropDownList.cs
- RSAPKCS1SignatureFormatter.cs
- MultiSelectRootGridEntry.cs
- WindowsAuthenticationModule.cs
- RequestStatusBarUpdateEventArgs.cs
- LoginCancelEventArgs.cs
- ProtocolsConfiguration.cs
- EntitySetBase.cs
- MouseOverProperty.cs
- MouseActionValueSerializer.cs
- CollectionDataContractAttribute.cs
- _SslStream.cs
- StringStorage.cs
- TypeInfo.cs
- UriScheme.cs
- WebAdminConfigurationHelper.cs
- VisualStyleInformation.cs
- IndexOutOfRangeException.cs
- LinkLabel.cs
- ControlCachePolicy.cs
- HeaderUtility.cs
- Thickness.cs
- FontStyle.cs
- ResizeGrip.cs
- ShaderEffect.cs