DataMisalignedException 建構函式

定義

初始化 DataMisalignedException 類別的新執行個體。Initializes a new instance of the DataMisalignedException class.

多載

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.

DataMisalignedException()

初始化 DataMisalignedException 類別的新執行個體。Initializes a new instance of the DataMisalignedException class.

public:
 DataMisalignedException();
public DataMisalignedException ();
Public Sub New ()

DataMisalignedException(String)

使用指定的錯誤訊息來初始化 DataMisalignedException 類別的新執行個體。Initializes a new instance of the DataMisalignedException class using the specified error message.

public:
 DataMisalignedException(System::String ^ message);
public DataMisalignedException (string message);
new DataMisalignedException : string -> DataMisalignedException
Public Sub New (message As String)

參數

message
String

描述錯誤的 String 物件。A String object that describes the error. message 的內容必須能讓人了解。The content of message is intended to be understood by humans. 這個建構函式的呼叫端必須確保這個字串已經被當地語系化 (為了目前系統的文化特性)。The caller of this constructor is required to ensure that this string has been localized for the current system culture.

DataMisalignedException(String, Exception)

使用指定的錯誤訊息和基礎例外狀況來初始化 DataMisalignedException 類別的新執行個體。Initializes a new instance of the DataMisalignedException class using the specified error message and underlying exception.

public:
 DataMisalignedException(System::String ^ message, Exception ^ innerException);
public DataMisalignedException (string message, Exception innerException);
new DataMisalignedException : string * Exception -> DataMisalignedException
Public Sub New (message As String, innerException As Exception)

參數

message
String

描述錯誤的 String 物件。A String object that describes the error. message 的內容必須能讓人了解。The content of message is intended to be understood by humans. 這個建構函式的呼叫端必須確保這個字串已經被當地語系化 (為了目前系統的文化特性)。The caller of this constructor is required to ensure that this string has been localized for the current system culture.

innerException
Exception

導致目前 DataMisalignedException 的例外狀況。The exception that is the cause of the current DataMisalignedException. 如果 innerException 參數不是 null,則目前的例外狀況會在處理內部例外的 catch 區塊中引發。If the innerException parameter is not null, the current exception is raised in a catch block that handles the inner exception.

適用於