次の方法で共有


CustomAttributeFormatException クラス

カスタム属性のバイナリ形式が無効な場合にスローされる例外。

この型のすべてのメンバの一覧については、CustomAttributeFormatException メンバ を参照してください。

System.Object
   System.Exception
      System.SystemException
         System.FormatException
            System.Reflection.CustomAttributeFormatException

<Serializable>
Public Class CustomAttributeFormatException   Inherits FormatException
[C#]
[Serializable]
public class CustomAttributeFormatException : FormatException
[C++]
[Serializable]
public __gc class CustomAttributeFormatException : public   FormatException
[JScript]
public
   Serializable
class CustomAttributeFormatException extends FormatException

スレッドセーフ

この型の public static (Visual Basicでは Shared) のすべてのメンバは、マルチスレッド操作で安全に使用できます。インスタンスのメンバの場合は、スレッドセーフであるとは限りません。

解説

CustomAttributeFormatException は、値 0x80131537 を保持する HRESULT COR_E_FORMAT を使用します。

データ型のカスタム属性が正しく書式設定されていない場合は、 CustomAttributeFormatException がスローされます。データ型の作成に使用したツールにバグがあると考えられます。

必要条件

名前空間: System.Reflection

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET

アセンブリ: Mscorlib (Mscorlib.dll 内)

参照

CustomAttributeFormatException メンバ | System.Reflection 名前空間 | Exception | FormatException | 例外の処理とスロー