Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / HtmlElementErrorEventArgs.cs / 1305376 / HtmlElementErrorEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
using System;
using System.ComponentModel;
namespace System.Windows.Forms {
///
///
/// EventArgs for onerror event of HtmlElement
///
public sealed class HtmlElementErrorEventArgs : EventArgs {
private string description;
private string urlString;
private Uri url;
private int lineNumber;
private bool handled;
internal HtmlElementErrorEventArgs(string description, string urlString, int lineNumber)
{
this.description = description;
this.urlString = urlString;
this.lineNumber = lineNumber;
}
///
///
/// Description of error
///
public string Description
{
get
{
return description;
}
}
///
///
///
/// Gets or sets a value indicating whether the
/// event was handled.
///
///
public bool Handled {
get {
return handled;
}
set {
handled = value;
}
}
///
///
/// Line number where error occurred
///
public int LineNumber
{
get
{
return lineNumber;
}
}
///
///
/// Url where error occurred
///
public Uri Url
{
get
{
if (url == null)
{
url = new Uri(urlString);
}
return url;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
using System;
using System.ComponentModel;
namespace System.Windows.Forms {
///
///
/// EventArgs for onerror event of HtmlElement
///
public sealed class HtmlElementErrorEventArgs : EventArgs {
private string description;
private string urlString;
private Uri url;
private int lineNumber;
private bool handled;
internal HtmlElementErrorEventArgs(string description, string urlString, int lineNumber)
{
this.description = description;
this.urlString = urlString;
this.lineNumber = lineNumber;
}
///
///
/// Description of error
///
public string Description
{
get
{
return description;
}
}
///
///
///
/// Gets or sets a value indicating whether the
/// event was handled.
///
///
public bool Handled {
get {
return handled;
}
set {
handled = value;
}
}
///
///
/// Line number where error occurred
///
public int LineNumber
{
get
{
return lineNumber;
}
}
///
///
/// Url where error occurred
///
public Uri Url
{
get
{
if (url == null)
{
url = new Uri(urlString);
}
return url;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MenuItemStyle.cs
- HMACSHA512.cs
- TraceHwndHost.cs
- Matrix3D.cs
- ListBindingHelper.cs
- SmtpException.cs
- SqlWorkflowInstanceStoreLock.cs
- UnwrappedTypesXmlSerializerManager.cs
- GeneralTransformCollection.cs
- ProxyGenerator.cs
- TextFormatterHost.cs
- TextRunProperties.cs
- ReflectPropertyDescriptor.cs
- XmlException.cs
- HitTestParameters3D.cs
- CodeTypeDeclaration.cs
- AttributeUsageAttribute.cs
- XmlSchemaGroupRef.cs
- WindowsPrincipal.cs
- ServiceHostingEnvironment.cs
- FunctionUpdateCommand.cs
- SchemaMapping.cs
- ListBox.cs
- WebReferencesBuildProvider.cs
- XmlSchemaComplexContentRestriction.cs
- webclient.cs
- Int32CAMarshaler.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- ZipIOBlockManager.cs
- LinearGradientBrush.cs
- CultureMapper.cs
- EventDescriptor.cs
- TextBox.cs
- LongTypeConverter.cs
- X509CertificateTrustedIssuerElementCollection.cs
- StubHelpers.cs
- ReferenceService.cs
- UpdateException.cs
- ToolboxDataAttribute.cs
- PixelFormat.cs
- EntityClassGenerator.cs
- Certificate.cs
- ParserContext.cs
- CompiledQueryCacheEntry.cs
- XmlAtomErrorReader.cs
- QuaternionRotation3D.cs
- BuildManager.cs
- DataSourceView.cs
- XsltContext.cs
- DataFormats.cs
- IOException.cs
- DataServiceBuildProvider.cs
- MsmqChannelFactoryBase.cs
- TextOptionsInternal.cs
- XmlSchemaRedefine.cs
- MarkerProperties.cs
- SafeProcessHandle.cs
- HyperLinkColumn.cs
- RepeaterItemEventArgs.cs
- InputChannelAcceptor.cs
- WebPartConnectionsCancelVerb.cs
- PropertyCollection.cs
- BitmapCacheBrush.cs
- Attributes.cs
- HtmlControlPersistable.cs
- ListComponentEditorPage.cs
- MatrixTransform3D.cs
- CloudCollection.cs
- RTLAwareMessageBox.cs
- EventData.cs
- HttpRuntime.cs
- FamilyTypefaceCollection.cs
- InputMethod.cs
- ListBox.cs
- ReadWriteSpinLock.cs
- DeviceSpecificDesigner.cs
- ScriptManager.cs
- control.ime.cs
- EntityModelBuildProvider.cs
- PropertyGroupDescription.cs
- DBCSCodePageEncoding.cs
- StyleSheetComponentEditor.cs
- RoleService.cs
- StackBuilderSink.cs
- RelationalExpressions.cs
- ExceptionValidationRule.cs
- LifetimeServices.cs
- VisualBasicExpressionConverter.cs
- EventManager.cs
- StrokeCollection2.cs
- HttpHandlerAction.cs
- Vector3D.cs
- RC2.cs
- SqlHelper.cs
- ParameterCollection.cs
- DataGridViewCellMouseEventArgs.cs
- SystemWebCachingSectionGroup.cs
- TreeChangeInfo.cs
- DataServiceRequestOfT.cs
- AuthenticationSection.cs