|
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
namespace ExtendedWebBrowser2
{
/// <summary>
/// Used in the new navigation events
/// </summary>
class BrowserExtendedNavigatingEventArgs : CancelEventArgs
{
private Uri _Url;
/// <summary>
/// The URL to navigate to
/// </summary>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
public Uri Url
{
get { return _Url; }
}
private string _Frame;
/// <summary>
/// The name of the frame to navigate to
/// </summary>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
public string Frame
{
get { return _Frame; }
}
private UrlContext navigationContext;
/// <summary>
/// The flags when opening a new window
/// </summary>
public UrlContext NavigationContext
{
get { return this.navigationContext; }
}
private object _pDisp;
/// <summary>
/// The pointer to ppDisp
/// </summary>
public object AutomationObject
{
get { return this._pDisp; }
set { this._pDisp = value; }
}
/// <summary>
/// Creates a new instance of WebBrowserExtendedNavigatingEventArgs
/// </summary>
/// <param name="automation">Pointer to the automation object of the browser</param>
/// <param name="url">The URL to go to</param>
/// <param name="frame">The name of the frame</param>
/// <param name="navigationContext">The new window flags</param>
public BrowserExtendedNavigatingEventArgs(object automation, Uri url, string frame, UrlContext navigationContext)
: base()
{
_Url = url;
_Frame = frame;
this.navigationContext = navigationContext;
this._pDisp = automation;
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here