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 { ////// /// public delegate void WebBrowserNavigatingEventHandler(object sender, WebBrowserNavigatingEventArgs e); ////// Delegate to the WebBrowser Navigating event. /// ////// /// public class WebBrowserNavigatingEventArgs : CancelEventArgs { private Uri url; private string targetFrameName; ////// Provides data for the ///event. /// /// /// public WebBrowserNavigatingEventArgs(Uri url, string targetFrameName) { this.url = url; this.targetFrameName = targetFrameName; } ////// Creates an instance of the ///class. /// /// /// public Uri Url { get { WebBrowser.EnsureUrlConnectPermission(url); return this.url; } } ////// Url the browser is navigating to. /// ////// /// public string TargetFrameName { get { WebBrowser.EnsureUrlConnectPermission(url); return this.targetFrameName; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// In case an individual frame is about to be navigated, this contains the frame name. /// ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System.Net; using System.ComponentModel; namespace System.Windows.Forms { ////// /// public delegate void WebBrowserNavigatingEventHandler(object sender, WebBrowserNavigatingEventArgs e); ////// Delegate to the WebBrowser Navigating event. /// ////// /// public class WebBrowserNavigatingEventArgs : CancelEventArgs { private Uri url; private string targetFrameName; ////// Provides data for the ///event. /// /// /// public WebBrowserNavigatingEventArgs(Uri url, string targetFrameName) { this.url = url; this.targetFrameName = targetFrameName; } ////// Creates an instance of the ///class. /// /// /// public Uri Url { get { WebBrowser.EnsureUrlConnectPermission(url); return this.url; } } ////// Url the browser is navigating to. /// ////// /// public string TargetFrameName { get { WebBrowser.EnsureUrlConnectPermission(url); return this.targetFrameName; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// In case an individual frame is about to be navigated, this contains the frame name. /// ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- URLMembershipCondition.cs
- ActivityExecutionContext.cs
- TypeKeyValue.cs
- GenericTextProperties.cs
- DbConnectionPoolCounters.cs
- ParserStack.cs
- CodeSubDirectoriesCollection.cs
- SignatureDescription.cs
- DelegateHelpers.cs
- AtlasWeb.Designer.cs
- TreeBuilderXamlTranslator.cs
- TypeFieldSchema.cs
- GlyphsSerializer.cs
- GifBitmapDecoder.cs
- DragEvent.cs
- ColumnHeaderConverter.cs
- UnsafeNativeMethods.cs
- ToolStripItemImageRenderEventArgs.cs
- TextEffectCollection.cs
- CodeGroup.cs
- SymbolDocumentInfo.cs
- DataKey.cs
- SqlClientWrapperSmiStreamChars.cs
- CharacterBufferReference.cs
- DoubleLink.cs
- TypeNameConverter.cs
- CacheEntry.cs
- HtmlInputFile.cs
- ImageInfo.cs
- DesignerHelpers.cs
- CustomTypeDescriptor.cs
- MulticastDelegate.cs
- EventListenerClientSide.cs
- BitmapSourceSafeMILHandle.cs
- _LoggingObject.cs
- XPathChildIterator.cs
- CertificateManager.cs
- DbModificationCommandTree.cs
- SecurityCriticalDataForSet.cs
- StylusDevice.cs
- DesignerView.Commands.cs
- ImageBrush.cs
- CleanUpVirtualizedItemEventArgs.cs
- StrokeNodeOperations2.cs
- MailDefinitionBodyFileNameEditor.cs
- CompensationHandlingFilter.cs
- XPathDocumentIterator.cs
- ControllableStoryboardAction.cs
- CopyNodeSetAction.cs
- BufferAllocator.cs
- WindowsProgressbar.cs
- followingquery.cs
- Sql8ExpressionRewriter.cs
- XmlElement.cs
- DispatcherObject.cs
- XmlAnyElementAttribute.cs
- DataRecordInfo.cs
- TextTreeTextBlock.cs
- DynamicDocumentPaginator.cs
- UnionCqlBlock.cs
- PcmConverter.cs
- PageContent.cs
- DataServiceRequestException.cs
- MemoryFailPoint.cs
- GlobalizationSection.cs
- EventLogPermission.cs
- HttpSessionStateWrapper.cs
- Msec.cs
- SettingsSection.cs
- IHttpResponseInternal.cs
- RadioButtonAutomationPeer.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- StrokeCollectionConverter.cs
- CodeNamespaceImport.cs
- ToolStripPanel.cs
- LinkClickEvent.cs
- SqlDependency.cs
- DataGridViewBindingCompleteEventArgs.cs
- EventWaitHandle.cs
- PageSettings.cs
- SqlClientWrapperSmiStreamChars.cs
- CodeTypeParameter.cs
- BuilderPropertyEntry.cs
- SystemUdpStatistics.cs
- Configuration.cs
- MbpInfo.cs
- ExpandedWrapper.cs
- SchemaElementDecl.cs
- HtmlInputSubmit.cs
- DataSourceSelectArguments.cs
- FormViewRow.cs
- FixedNode.cs
- SqlUDTStorage.cs
- HashAlgorithm.cs
- DynamicRendererThreadManager.cs
- GeneralTransform2DTo3D.cs
- ClientOperation.cs
- ToolboxComponentsCreatedEventArgs.cs
- XPathQilFactory.cs
- WebServiceBindingAttribute.cs