Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / WebBrowserNavigatingEventHandler.cs / 1305376 / 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
- TextParagraphProperties.cs
- SynchronizedDispatch.cs
- RtfToken.cs
- ItemsControl.cs
- DataBoundControlAdapter.cs
- Compiler.cs
- SvcMapFile.cs
- Padding.cs
- MatrixStack.cs
- HwndSubclass.cs
- BitVec.cs
- ServiceMoniker.cs
- FormViewCommandEventArgs.cs
- ItemsPresenter.cs
- PointValueSerializer.cs
- ProfileService.cs
- BindingCompleteEventArgs.cs
- Solver.cs
- BitmapEffectvisualstate.cs
- FrameworkContentElement.cs
- ToolStripMenuItemDesigner.cs
- UserControlAutomationPeer.cs
- DateTimeOffsetStorage.cs
- ExtenderProvidedPropertyAttribute.cs
- EventLogPermissionAttribute.cs
- SessionState.cs
- IsolatedStorage.cs
- ItemCollection.cs
- RowCache.cs
- CannotUnloadAppDomainException.cs
- SafeRightsManagementPubHandle.cs
- RenderTargetBitmap.cs
- CompositeActivityTypeDescriptor.cs
- Condition.cs
- filewebrequest.cs
- HealthMonitoringSection.cs
- IdentityValidationException.cs
- SqlVersion.cs
- StructuredTypeEmitter.cs
- MainMenu.cs
- PropertyItemInternal.cs
- Brush.cs
- WindowsFormsLinkLabel.cs
- OleDbWrapper.cs
- XmlSchemaSimpleContentRestriction.cs
- CorruptingExceptionCommon.cs
- DataBoundControlHelper.cs
- externdll.cs
- BamlRecordReader.cs
- XmlDocumentFieldSchema.cs
- ContractsBCL.cs
- ItemContainerPattern.cs
- JapaneseLunisolarCalendar.cs
- ChildChangedEventArgs.cs
- SafeFileHandle.cs
- HtmlInputFile.cs
- XmlQuerySequence.cs
- EraserBehavior.cs
- SerTrace.cs
- RijndaelCryptoServiceProvider.cs
- ComponentEditorPage.cs
- PersistenceTypeAttribute.cs
- XmlMapping.cs
- UntrustedRecipientException.cs
- IResourceProvider.cs
- MediaEntryAttribute.cs
- MenuItemCollectionEditor.cs
- Application.cs
- FontFamily.cs
- FormatConvertedBitmap.cs
- XmlNamespaceDeclarationsAttribute.cs
- FilterInvalidBodyAccessException.cs
- IndentedWriter.cs
- AssemblyAssociatedContentFileAttribute.cs
- XsdDuration.cs
- StreamingContext.cs
- Typeface.cs
- documentsequencetextview.cs
- UidManager.cs
- ListViewAutomationPeer.cs
- PrintEvent.cs
- NGCPageContentCollectionSerializerAsync.cs
- FtpWebRequest.cs
- RectangleF.cs
- EntitySetRetriever.cs
- AssociationProvider.cs
- RuntimeConfig.cs
- SoapServerProtocol.cs
- WebPartChrome.cs
- DataGridViewTopLeftHeaderCell.cs
- CodeSnippetCompileUnit.cs
- QueryStringParameter.cs
- HopperCache.cs
- EntityDesignerBuildProvider.cs
- localization.cs
- HttpHandlerActionCollection.cs
- StrokeSerializer.cs
- DataListItemCollection.cs
- ChangeBlockUndoRecord.cs
- EntityCommandExecutionException.cs