Files
cefsharp/CefSharp/Event/LoadErrorEventArgs.cs
Chris bef5dd37c4 Maintenance - Fixed formatting, file encoding, and copyright year (#2504)
* Applied formatting

* Fixed file encoding + Updated copyright year

* Updated License

* Fixed more file encoding

* Copyright notice now shows the year the file was created
2018-09-10 10:41:13 +10:00

57 lines
1.7 KiB
C#

// Copyright © 2014 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
namespace CefSharp
{
/// <summary>
/// Event arguments to the LoadError event handler set up in IWebBrowser.
/// </summary>
public class LoadErrorEventArgs : EventArgs
{
/// <summary>
/// LoadErrorEventArgs
/// </summary>
/// <param name="browser">browser</param>
/// <param name="frame">frame</param>
/// <param name="errorCode">error code</param>
/// <param name="errorText">error text</param>
/// <param name="failedUrl">failed url</param>
public LoadErrorEventArgs(IBrowser browser, IFrame frame, CefErrorCode errorCode, string errorText, string failedUrl)
{
Browser = browser;
Frame = frame;
ErrorCode = errorCode;
ErrorText = errorText;
FailedUrl = failedUrl;
}
/// <summary>
/// The browser object
/// </summary>
public IBrowser Browser { get; private set; }
/// <summary>
/// The frame that failed to load.
/// </summary>
public IFrame Frame { get; private set; }
/// <summary>
/// The URL that failed to load.
/// </summary>
public string FailedUrl { get; private set; }
/// <summary>
/// The error code.
/// </summary>
public CefErrorCode ErrorCode { get; private set; }
/// <summary>
/// The error text.
/// </summary>
public string ErrorText { get; private set; }
}
}