XmlExceptionElement

Represents an exception XML documentation element.

Syntax

public class XmlExceptionElement : XmlDocumentationElement

Inheritance

Constructors

XmlExceptionElement

public XmlExceptionElement()
Initializes a new instance of the XmlExceptionElement class.

XmlExceptionElement

public XmlExceptionElement(XElement element)
Initializes a new instance of the XmlExceptionElement class with XML content.

Parameters

  • element XElement: The XML element to parse.

Properties

Cref

public string Cref { get; set; }
Gets or sets the fully qualified name of the exception type.

Returns

string

Methods

ToMdx

public override string ToMdx()
Converts this exception element to MDX format.

Returns

string The MDX representation of this exception.

Remarks

The exception element documents exceptions that can be thrown by a method or property. It includes the exception type and conditions under which it is thrown.