HostProtectionException コンストラクタ (SerializationInfo, StreamingContext)
アセンブリ: mscorlib (mscorlib.dll 内)

Dim info As SerializationInfo Dim context As StreamingContext Dim instance As New HostProtectionException(info, context)


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


HostProtectionException コンストラクタ (String)
アセンブリ: mscorlib (mscorlib.dll 内)


message パラメータの内容は、ユーザーが理解できる内容である必要があります。このコンストラクタの呼び出し元は、この文字列が現在のシステムのカルチャに合わせてローカライズ済みであることを確認しておく必要があります。

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


HostProtectionException コンストラクタ (String, Exception)
アセンブリ: mscorlib (mscorlib.dll 内)


前の例外の直接の結果としてスローされる例外については、InnerException プロパティに、前の例外への参照が格納されます。InnerException プロパティは、コンストラクタに渡されたものと同じ値を返します。InnerException プロパティによって内部例外値がコンストラクタに渡されなかった場合は、null 参照 (Visual Basic では Nothing) を返します。

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


HostProtectionException コンストラクタ (String, HostProtectionResource, HostProtectionResource)
アセンブリ: mscorlib (mscorlib.dll 内)

Public Sub New ( _ message As String, _ protectedResources As HostProtectionResource, _ demandedResources As HostProtectionResource _ )
Dim message As String Dim protectedResources As HostProtectionResource Dim demandedResources As HostProtectionResource Dim instance As New HostProtectionException(message, protectedResources, demandedResources)
public HostProtectionException ( string message, HostProtectionResource protectedResources, HostProtectionResource demandedResources )
public: HostProtectionException ( String^ message, HostProtectionResource protectedResources, HostProtectionResource demandedResources )
public HostProtectionException ( String message, HostProtectionResource protectedResources, HostProtectionResource demandedResources )
public function HostProtectionException ( message : String, protectedResources : HostProtectionResource, demandedResources : HostProtectionResource )

demandedResources パラメータにより、例外がスローされる原因となった、要求されたホスト保護のカテゴリを指定します。たとえば、メソッドが共有状態を公開していることを示す HostProtectionAttribute 属性がメソッドに含まれているとします。このメソッドを呼び出すと、共有状態に対するリンク確認要求が HostProtectionAttribute によって実行されます。ホストで共有状態が禁止カテゴリに設定されている場合には、HostProtectionException が発生し、demandedResources プロパティの値が HostProtectionResource.SharedState になります。

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


HostProtectionException コンストラクタ

名前 | 説明 |
---|---|
HostProtectionException () | HostProtectionException クラスの新しいインスタンスを既定値で初期化します。 |
HostProtectionException (String) | 指定したエラー メッセージを使用して、HostProtectionException クラスの新しいインスタンスを初期化します。 |
HostProtectionException (SerializationInfo, StreamingContext) | 指定されたシリアル化情報とストリーム コンテキストを使用して、HostProtectionException クラスの新しいインスタンスを初期化します。 |
HostProtectionException (String, Exception) | 指定したエラー メッセージと、この例外の原因である内部例外への参照を使用して、HostProtectionException クラスの新しいインスタンスを初期化します。 |
HostProtectionException (String, HostProtectionResource, HostProtectionResource) | 指定したエラー メッセージ、保護されるホスト リソース、および例外がスローされる原因となったホスト リソースを使用して、HostProtectionException クラスの新しいインスタンスを初期化します。 |

HostProtectionException コンストラクタ ()
アセンブリ: mscorlib (mscorlib.dll 内)


HostProtectionException クラスのインスタンスの初期プロパティ値を次の表に示します。
値 | |
---|---|
ProtectedResources | HostProtectionResource.None |
DemandedResources | HostProtectionResource.None |

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- HostProtectionException コンストラクタのページへのリンク