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
- HeaderFilter.cs
- PointF.cs
- ConfigXmlCDataSection.cs
- CheckBoxField.cs
- ExceptionUtil.cs
- WorkflowElementDialogWindow.xaml.cs
- recordstatefactory.cs
- NativeMethods.cs
- TrackingRecord.cs
- CryptoStream.cs
- DataTableCollection.cs
- IssuedSecurityTokenProvider.cs
- PageAdapter.cs
- AnimationStorage.cs
- ServiceOperationParameter.cs
- dataSvcMapFileLoader.cs
- SerializationException.cs
- AmbientEnvironment.cs
- XmlBinaryWriterSession.cs
- ComEventsSink.cs
- XmlSchemaGroup.cs
- LazyTextWriterCreator.cs
- mansign.cs
- GeneralTransform3DTo2DTo3D.cs
- DataListDesigner.cs
- WebPartZone.cs
- WsatExtendedInformation.cs
- RemoteCryptoRsaServiceProvider.cs
- ConfigurationCollectionAttribute.cs
- EventLogEntryCollection.cs
- PackagePart.cs
- OSEnvironmentHelper.cs
- IgnorePropertiesAttribute.cs
- FileDialog_Vista.cs
- AccessDataSource.cs
- GroupQuery.cs
- RepeaterDataBoundAdapter.cs
- DictionaryBase.cs
- TextSimpleMarkerProperties.cs
- FlowDocumentPaginator.cs
- CompensationDesigner.cs
- WinFormsUtils.cs
- RelationshipNavigation.cs
- DataPagerFieldItem.cs
- MILUtilities.cs
- CodeThrowExceptionStatement.cs
- CompoundFileDeflateTransform.cs
- KeyManager.cs
- QilReference.cs
- OracleEncoding.cs
- LeafCellTreeNode.cs
- ToolStripItemImageRenderEventArgs.cs
- OdbcParameter.cs
- MsmqIntegrationChannelListener.cs
- IsolatedStorage.cs
- Avt.cs
- BooleanSwitch.cs
- RectangleGeometry.cs
- DesignerVerbToolStripMenuItem.cs
- DictionaryEntry.cs
- RPIdentityRequirement.cs
- PTUtility.cs
- Graphics.cs
- QualifiedCellIdBoolean.cs
- DynamicDocumentPaginator.cs
- UiaCoreApi.cs
- Mapping.cs
- GeneralTransform3D.cs
- RootProjectionNode.cs
- DataGridHyperlinkColumn.cs
- WebHttpBindingElement.cs
- ScrollEvent.cs
- WebPartEditorOkVerb.cs
- CompoundFileReference.cs
- HttpModule.cs
- EntitySetRetriever.cs
- ColorConverter.cs
- XhtmlBasicTextBoxAdapter.cs
- StylusPointPropertyInfo.cs
- DelegatedStream.cs
- NameValueCollection.cs
- ScrollItemProviderWrapper.cs
- CollectionTypeElement.cs
- HtmlInputText.cs
- UrlPath.cs
- StateMachine.cs
- XsltContext.cs
- ToolBarPanel.cs
- SortQuery.cs
- TextSelectionHelper.cs
- OracleRowUpdatingEventArgs.cs
- FieldInfo.cs
- FunctionDescription.cs
- ThreadInterruptedException.cs
- GeometryDrawing.cs
- TextTreeNode.cs
- DocumentViewerBaseAutomationPeer.cs
- XDeferredAxisSource.cs
- StylusPlugin.cs
- FontUnit.cs