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
- DataTemplateSelector.cs
- SqlTypesSchemaImporter.cs
- SystemFonts.cs
- TypeUtil.cs
- ObjectPersistData.cs
- GlyphsSerializer.cs
- TextControlDesigner.cs
- SQLCharsStorage.cs
- SqlUtils.cs
- NamedPipeProcessProtocolHandler.cs
- PrivateFontCollection.cs
- HtmlHead.cs
- TableColumn.cs
- ToolboxComponentsCreatedEventArgs.cs
- XmlDownloadManager.cs
- basenumberconverter.cs
- ImmutableCollection.cs
- DataObjectEventArgs.cs
- OutputCacheSettings.cs
- ObjectDataSourceView.cs
- PartitionResolver.cs
- RectKeyFrameCollection.cs
- ProcessThreadDesigner.cs
- CardSpaceSelector.cs
- PopOutPanel.cs
- ValueTypeFieldReference.cs
- TouchesOverProperty.cs
- TypeUsageBuilder.cs
- PropertyMetadata.cs
- XmlObjectSerializerWriteContextComplex.cs
- MultipartContentParser.cs
- BufferAllocator.cs
- WebEventCodes.cs
- RepeaterCommandEventArgs.cs
- FixedSOMTextRun.cs
- UriTemplateHelpers.cs
- XamlBrushSerializer.cs
- Variant.cs
- ComplexPropertyEntry.cs
- IconHelper.cs
- UriTemplateClientFormatter.cs
- DataRow.cs
- LoginView.cs
- CommandField.cs
- ResXDataNode.cs
- ApplicationSecurityManager.cs
- ConfigurationManagerHelperFactory.cs
- WebPermission.cs
- KeySplineConverter.cs
- IsolatedStorageSecurityState.cs
- UnionCodeGroup.cs
- CompilationUtil.cs
- ConfigXmlText.cs
- LineUtil.cs
- TextSegment.cs
- ResourceDisplayNameAttribute.cs
- NativeWindow.cs
- SchemaLookupTable.cs
- TreeWalker.cs
- ResourcesBuildProvider.cs
- IFlowDocumentViewer.cs
- TextTabProperties.cs
- TargetFrameworkAttribute.cs
- DrawingServices.cs
- LocatorPartList.cs
- XmlSchemaType.cs
- FormViewModeEventArgs.cs
- WorkflowOwnershipException.cs
- DataSetMappper.cs
- XmlSchemaAppInfo.cs
- MissingManifestResourceException.cs
- PreApplicationStartMethodAttribute.cs
- DetailsViewInsertedEventArgs.cs
- GroupBoxAutomationPeer.cs
- PositiveTimeSpanValidatorAttribute.cs
- WebPartConnectionsCloseVerb.cs
- TemplateBuilder.cs
- PropertyValueEditor.cs
- _ProxyChain.cs
- DynamicValidatorEventArgs.cs
- LicFileLicenseProvider.cs
- AssemblyName.cs
- OSFeature.cs
- DataFieldConverter.cs
- Certificate.cs
- DiscoveryRequestHandler.cs
- ChannelSinkStacks.cs
- XmlCompatibilityReader.cs
- ElementAction.cs
- InvalidFilterCriteriaException.cs
- URLIdentityPermission.cs
- RijndaelCryptoServiceProvider.cs
- KeyedHashAlgorithm.cs
- EncryptedKeyIdentifierClause.cs
- DistributedTransactionPermission.cs
- SizeChangedInfo.cs
- ConnectionManagementElement.cs
- tooltip.cs
- BCryptSafeHandles.cs
- GeometryDrawing.cs