This documentation is archived and is not being maintained.

CustomAttributeFormatException Class

The exception that is thrown when the binary format of a custom attribute is invalid.

For a list of all members of this type, see CustomAttributeFormatException Members.


[Visual Basic]
Public Class CustomAttributeFormatException
   Inherits FormatException
public class CustomAttributeFormatException : FormatException
public __gc class CustomAttributeFormatException : public
class CustomAttributeFormatException extends FormatException

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


CustomAttributeFormatException uses the HRESULT COR_E_FORMAT which has the value 0x80131537.

CustomAttributeFormatException is thrown if a custom attribute on a data type is formatted incorrectly, possibly because of a bug in the tool used to create the data type.


Namespace: System.Reflection

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

Assembly: Mscorlib (in Mscorlib.dll)

See Also

CustomAttributeFormatException Members | System.Reflection Namespace | Exception | FormatException | Handling and Throwing Exceptions