Class IisCustomErrorCollection
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents a collection of IIS custom errors (.NET error pages).
public class IisCustomErrorCollection : Collection<IisCustomError>, IList<IisCustomError>, ICollection<IisCustomError>, IList, ICollection, IReadOnlyList<IisCustomError>, IReadOnlyCollection<IisCustomError>, IEnumerable<IisCustomError>, IEnumerable
- Inheritance
-
IisCustomErrorCollection
- Implements
- Inherited Members
Constructors
IisCustomErrorCollection()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.IisCustomErrorCollection class.
public IisCustomErrorCollection()
Methods
Exists(int)
Returns a System.Boolean value that indicates whether a CENTREL.XIA.Configuration.Types.IisCustomError with the specified status code exists within the collection.
public bool Exists(int statusCode)
Parameters
statusCode
intThe status code of the CENTREL.XIA.Configuration.Types.IisCustomError to locate.
Returns
- bool
A System.Boolean value that indicates whether a CENTREL.XIA.Configuration.Types.IisCustomError with the specified status code exists within the collection.
FindByStatusCode(int)
Returns the CENTREL.XIA.Configuration.Types.IisCustomError with the specified status code, or null if no CENTREL.XIA.Configuration.Types.IisCustomError with that specified status code is found.
public IisCustomError FindByStatusCode(int statusCode)
Parameters
statusCode
intThe status code of the CENTREL.XIA.Configuration.Types.IisCustomError to locate.
Returns
- IisCustomError
The CENTREL.XIA.Configuration.Types.IisCustomError with the specified status code.
Sort()
Sorts the values in the collection.
public void Sort()