示例#1
0
 /// <summary>
 /// Creates a new instance of WebBrowserExtendedNavigateErrorEventArgs
 /// </summary>
 /// <param name="automation">Pointer to the automation object of the browser</param>
 /// <param name="url">The URL to go to</param>
 /// <param name="statusCode">The status code.</param>
 /// <param name="navigationContext">The new window flags</param>
 public BrowserExtendedNavigateErrorEventArgs(
     object automation,
     Uri url,
     NavigateErrorStatusCode statusCode,
     UrlContexts navigationContext)
 {
     _url               = url;
     _statusCode        = statusCode;
     _navigationContext = navigationContext;
     AutomationObject   = automation;
 }
		/// <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, 
			UrlContexts navigationContext )
		{
			_url = url;
			_frame = frame;
			_navigationContext = navigationContext;
			AutomationObject = automation;
		}
		/// <summary>
		/// Creates a new instance of WebBrowserExtendedNavigateErrorEventArgs
		/// </summary>
		/// <param name="automation">Pointer to the automation object of the browser</param>
		/// <param name="url">The URL to go to</param>
		/// <param name="statusCode">The status code.</param>
		/// <param name="navigationContext">The new window flags</param>
		public BrowserExtendedNavigateErrorEventArgs( 
			object automation, 
			Uri url, 
			NavigateErrorStatusCode statusCode,
			UrlContexts navigationContext )
		{
			_url = url;
			_statusCode = statusCode;
			_navigationContext = navigationContext;
			AutomationObject = automation;
		}