DataMisalignedException クラス
定義
データの単位が、データ サイズの倍数ではないアドレスから読み込まれたり、アドレスに書き込まれたりしたときにスローされる例外。The exception that is thrown when a unit of data is read from or written to an address that is not a multiple of the data size. このクラスは継承できません。This class cannot be inherited.
public ref class DataMisalignedException sealed : Exception
public ref class DataMisalignedException sealed : SystemException
public sealed class DataMisalignedException : Exception
public sealed class DataMisalignedException : SystemException
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public sealed class DataMisalignedException : SystemException
type DataMisalignedException = class
inherit Exception
type DataMisalignedException = class
inherit SystemException
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Serializable>]
type DataMisalignedException = class
inherit SystemException
Public NotInheritable Class DataMisalignedException
Inherits Exception
Public NotInheritable Class DataMisalignedException
Inherits SystemException
- 継承
- 継承
- 属性
注釈
64ビットプロセッサなど、一部のマイクロプロセッサは、データが不整合なアドレスに読み取られるか、書き込まれるとき (つまり、アドレスがアクセスされるデータのサイズの倍数ではない場合) に、ハードウェア例外を発行できます。Some microprocessors, such as 64-bit processors, can issue hardware exceptions when data is read or written to a misaligned address (that is, when an address is not a multiple of the size of the data being accessed). DataMisalignedException は、通常、16ビット、32ビット、または64ビットのデータが、2、4、または8バイトの倍数ではないアドレスに対して読み取りまたは書き込みが行われたときにスローされます。DataMisalignedException is typically thrown when 16-bit, 32-bit, or 64-bit data is read from or written to an address that is not a multiple of two, four, or eight bytes.
は、 DataMisalignedException 基になるハードウェア例外を公開します。これにより、適切な方法で応答することができます。The DataMisalignedException exposes the underlying hardware exception, which allows you to respond in an appropriate manner. たとえば、アプリケーションのルーチンは、64ビット単位である場所から別の場所にバイトシーケンスをコピーしようとします。For example, a routine in your application attempts to copy a sequence of bytes from one location to another in 64-bit units. ただし、書き込み操作は、ミスアライメントされたアドレスで開始されるため、共通言語ランタイムによってがスローされ DataMisalignedException ます。However, the write operation starts at a misaligned address, which causes the common language runtime to throw a DataMisalignedException. ルーチンは、一度に1バイトずつデータをコピーすることによって、例外に応答します。Your routine responds to the exception by copying the data one byte at a time.
コンストラクター
DataMisalignedException() |
DataMisalignedException クラスの新しいインスタンスを初期化します。Initializes a new instance of the DataMisalignedException class. |
DataMisalignedException(String) |
指定したエラー メッセージを使用して、DataMisalignedException クラスの新しいインスタンスを初期化します。Initializes a new instance of the DataMisalignedException class using the specified error message. |
DataMisalignedException(String, Exception) |
指定したエラー メッセージと基になる例外を使用して、DataMisalignedException クラスの新しいインスタンスを初期化します。Initializes a new instance of the DataMisalignedException class using the specified error message and underlying exception. |
プロパティ
Data |
例外に関する追加のユーザー定義情報を提供する、キーと値のペアのコレクションを取得します。Gets a collection of key/value pairs that provide additional user-defined information about the exception. (継承元 Exception) |
HelpLink |
この例外に関連付けられているヘルプ ファイルへのリンクを取得または設定します。Gets or sets a link to the help file associated with this exception. (継承元 Exception) |
HResult |
特定の例外に割り当てられているコード化数値である HRESULT を取得または設定します。Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception. (継承元 Exception) |
InnerException |
現在の例外の原因となる Exception インスタンスを取得します。Gets the Exception instance that caused the current exception. (継承元 Exception) |
Message |
現在の例外を説明するメッセージを取得します。Gets a message that describes the current exception. (継承元 Exception) |
Source |
エラーの原因となるアプリケーションまたはオブジェクトの名前を取得または設定します。Gets or sets the name of the application or the object that causes the error. (継承元 Exception) |
StackTrace |
呼び出し履歴で直前のフレームの文字列形式を取得します。Gets a string representation of the immediate frames on the call stack. (継承元 Exception) |
TargetSite |
現在の例外がスローされたメソッドを取得します。Gets the method that throws the current exception. (継承元 Exception) |
メソッド
Equals(Object) |
指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。Determines whether the specified object is equal to the current object. (継承元 Object) |
GetBaseException() |
派生クラスでオーバーライドされた場合、それ以後に発生する 1 つ以上の例外の根本原因である Exception を返します。When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions. (継承元 Exception) |
GetHashCode() |
既定のハッシュ関数として機能します。Serves as the default hash function. (継承元 Object) |
GetObjectData(SerializationInfo, StreamingContext) |
派生クラスでオーバーライドされた場合は、その例外に関する情報を使用して SerializationInfo を設定します。When overridden in a derived class, sets the SerializationInfo with information about the exception. (継承元 Exception) |
GetType() |
現在のインスタンスのランタイム型を取得します。Gets the runtime type of the current instance. (継承元 Exception) |
MemberwiseClone() |
現在の Object の簡易コピーを作成します。Creates a shallow copy of the current Object. (継承元 Object) |
ToString() |
現在の例外の文字列形式を作成して返します。Creates and returns a string representation of the current exception. (継承元 Exception) |
イベント
SerializeObjectState |
例外がシリアル化され、例外に関するシリアル化されたデータを含む例外状態オブジェクトが作成されたときに発生します。Occurs when an exception is serialized to create an exception state object that contains serialized data about the exception. (継承元 Exception) |