﻿<?xml version="1.0" encoding="utf-8"?><Type Name="CustomError" FullName="System.Web.Configuration.CustomError"><TypeSignature Language="C#" Value="public sealed class CustomError : System.Configuration.ConfigurationElement" /><AssemblyInfo><AssemblyName>System.Web</AssemblyName><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo><Base><BaseTypeName>System.Configuration.ConfigurationElement</BaseTypeName></Base><Interfaces /><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="T:System.Web.Configuration.CustomError" /> class provides a way to programmatically access and modify the error section of a configuration file. This type is part of a group that includes the <see cref="T:System.Web.Configuration.CustomErrorCollection" />, <see cref="T:System.Web.Configuration.CustomErrorsMode" />, and <see cref="T:System.Web.Configuration.CustomErrorsSection" />.</para><block subset="none" type="note"><para>When you define a custom error, ASP.NET assigns to it the standard error normally issued by the underlying service, such as IIS. For instance, if you define a custom error for the status code 404, ASP.NET will issue it anytime you refer to a non-existing .aspx page. The custom errors are only issued for those elements handled by ASP.NET. For instance, if you refer to a non-existing .htm page, IIS issues the standard 404 error. </para></block></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Configures a <see cref="T:System.Web.Configuration.CustomError" /> section to map an ASP.NET error code to a custom page. This class cannot be inherited.</para></summary></Docs><Members><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public CustomError (int statusCode, string redirect);" /><MemberType>Constructor</MemberType><Parameters><Parameter Name="statusCode" Type="System.Int32" /><Parameter Name="redirect" Type="System.String" /></Parameters><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="M:System.Web.Configuration.CustomError.#ctor(System.Int32,System.String)" /> constructor is not intended to be used directly from your code. It is called by the ASP.NET configuration system. You obtain an instance of the <see cref="T:System.Web.Configuration.CustomError" /> class by using the <see cref="M:System.Configuration.Configuration.GetSection(System.String)" /> method.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Initializes a new instance of the <see cref="T:System.Web.Configuration.CustomError" /> class. </para></summary><param name="statusCode"><attribution license="cc4" from="Microsoft" modified="false" />The HTTP status code that will result in redirection to the error page.</param><param name="redirect"><attribution license="cc4" from="Microsoft" modified="false" />The URL of the custom page mapped to the error code.</param></Docs><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Equals"><MemberSignature Language="C#" Value="public override bool Equals (object customError);" /><MemberType>Method</MemberType><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Parameters><Parameter Name="customError" Type="System.Object" /></Parameters><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="M:System.Web.Configuration.CustomError.Equals(System.Object)" /> method compares all errors against objects that are passed to the method.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Compares <see cref="T:System.Web.Configuration.CustomError" /> errors.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>true if the errors  are equal; otherwise, false.</para></returns><param name="customError"><attribution license="cc4" from="Microsoft" modified="false" />The error to compare against.</param></Docs><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="GetHashCode"><MemberSignature Language="C#" Value="public override int GetHashCode ();" /><MemberType>Method</MemberType><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters /><Docs><remarks>To be added.</remarks><since version=".NET 2.0" /><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the <see cref="T:System.Web.Configuration.CustomError" /> object hash code.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="T:System.Web.Configuration.CustomError" /> object hash code.</para></returns></Docs><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Properties"><MemberSignature Language="C#" Value="protected override System.Configuration.ConfigurationPropertyCollection Properties { get; }" /><MemberType>Property</MemberType><ReturnValue><ReturnType>System.Configuration.ConfigurationPropertyCollection</ReturnType></ReturnValue><Docs><summary>To be added.</summary><value>To be added.</value><remarks>To be added.</remarks><since version=".NET 2.0" /></Docs><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Redirect"><MemberSignature Language="C#" Value="public string Redirect { set; get; }" /><MemberType>Property</MemberType><Attributes><Attribute><AttributeName>System.Configuration.ConfigurationProperty("redirect", Options=System.Configuration.ConfigurationPropertyOptions.IsRequired)</AttributeName></Attribute><Attribute><AttributeName>System.Configuration.StringValidator(MinLength=1)</AttributeName></Attribute></Attributes><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Docs><value>To be added.</value><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="P:System.Web.Configuration.CustomError.Redirect" /> property identifies the URL of the custom page associated with a specific error.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets or sets the redirection URL.</para></summary></Docs><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="StatusCode"><MemberSignature Language="C#" Value="public int StatusCode { set; get; }" /><MemberType>Property</MemberType><Attributes><Attribute><AttributeName>System.Configuration.ConfigurationProperty("statusCode", Options=System.Configuration.ConfigurationPropertyOptions.IsRequired | System.Configuration.ConfigurationPropertyOptions.IsKey)</AttributeName></Attribute><Attribute><AttributeName>System.Configuration.IntegerValidator(MinValue=100, MaxValue=999)</AttributeName></Attribute></Attributes><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Docs><value>To be added.</value><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The HTTP status code is used by the ASP.NET infrastructure to redirect the application to the error page when a specific error occurs.</para><block subset="none" type="note"><para>The custom error is issued only if it is caused by an entity handled by ASP.NET; otherwise, a standard error is issued.</para></block></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets or sets the HTTP error status code.</para></summary></Docs><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member></Members></Type>