CultureNotFoundException Constructors

Definition

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

Overloads

CultureNotFoundException()

使用將其訊息字串設定為系統提供的訊息,初始化 CultureNotFoundException 類別的新執行個體。Initializes a new instance of the CultureNotFoundException class with its message string set to a system-supplied message.

CultureNotFoundException(String)

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

CultureNotFoundException(SerializationInfo, StreamingContext)

使用指定的序列化資料和內容,初始化 CultureNotFoundException 類別的新執行個體。Initializes a new instance of the CultureNotFoundException class using the specified serialization data and context.

CultureNotFoundException(String, Exception)

使用指定的錯誤訊息以及造成此例外狀況之內部例外狀況的參考,初始化 CultureNotFoundException 類別的新執行個體。Initializes a new instance of the CultureNotFoundException class with a specified error message and a reference to the inner exception that is the cause of this exception.

CultureNotFoundException(String, String)

使用指定的錯誤訊息和造成這個例外狀況的參數名稱,初始化 CultureNotFoundException 類別的新執行個體。Initializes a new instance of the CultureNotFoundException class with a specified error message and the name of the parameter that is the cause this exception.

CultureNotFoundException(String, Int32, Exception)

使用指定的錯誤訊息、無效的文化特性 ID 和造成這個例外狀況的內部例外狀況的參考,初始化 CultureNotFoundException 類別的新執行個體。Initializes a new instance of the CultureNotFoundException class with a specified error message, the invalid Culture ID, and a reference to the inner exception that is the cause of this exception.

CultureNotFoundException(String, Int32, String)

使用指定的錯誤訊息、無效的文化特性 ID 和造成這個例外狀況的參數名稱,初始化 CultureNotFoundException 類別的新執行個體。Initializes a new instance of the CultureNotFoundException class with a specified error message, the invalid Culture ID, and the name of the parameter that is the cause this exception.

CultureNotFoundException(String, String, Exception)

使用指定的錯誤訊息、無效的文化特性名稱和造成這個例外狀況的內部例外狀況的參考,初始化 CultureNotFoundException 類別的新執行個體。Initializes a new instance of the CultureNotFoundException class with a specified error message, the invalid Culture Name, and a reference to the inner exception that is the cause of this exception.

CultureNotFoundException(String, String, String)

使用指定的錯誤訊息、無效的文化特性名稱和造成這個例外狀況的參數名稱,初始化 CultureNotFoundException 類別的新執行個體。Initializes a new instance of the CultureNotFoundException class with a specified error message, the invalid Culture Name, and the name of the parameter that is the cause this exception.

Remarks

CultureNotFoundException 使用 HRESULT COR_E_ARGUMENT,其值為0x80070057。CultureNotFoundException uses the HRESULT COR_E_ARGUMENT, which has the value 0x80070057.

CultureNotFoundException()

使用將其訊息字串設定為系統提供的訊息,初始化 CultureNotFoundException 類別的新執行個體。Initializes a new instance of the CultureNotFoundException class with its message string set to a system-supplied message.

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

Remarks

CultureNotFoundException 使用 HRESULT COR_E_ARGUMENT,其值為0x80070057。CultureNotFoundException uses the HRESULT COR_E_ARGUMENT, which has the value 0x80070057.

CultureNotFoundException(String)

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

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

Parameters

message
String

與這個例外狀況一起顯示的錯誤訊息。The error message to display with this exception.

Remarks

此函式會使用 message 參數的值,初始化新實例的 Message 屬性。This constructor initializes the Message property of the new instance using the value of the message parameter. message 參數的內容必須能讓人了解。The content of the message parameter 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.

CultureNotFoundException 使用 HRESULT COR_E_ARGUMENT,其值為0x80070057。CultureNotFoundException uses the HRESULT COR_E_ARGUMENT, which has the value 0x80070057.

CultureNotFoundException(SerializationInfo, StreamingContext)

使用指定的序列化資料和內容,初始化 CultureNotFoundException 類別的新執行個體。Initializes a new instance of the CultureNotFoundException class using the specified serialization data and context.

protected:
 CultureNotFoundException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected CultureNotFoundException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Globalization.CultureNotFoundException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Globalization.CultureNotFoundException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

保存序列化物件資料的物件。The object that holds the serialized object data.

context
StreamingContext

有關來源或目的地的內容資訊。The contextual information about the source or destination.

Remarks

這個建構函式是在還原序列化期間呼叫,以便重新組成透過資料流傳輸的例外狀況物件。This constructor is called during deserialization to reconstitute the exception object transmitted over a stream.

CultureNotFoundException(String, Exception)

使用指定的錯誤訊息以及造成此例外狀況之內部例外狀況的參考,初始化 CultureNotFoundException 類別的新執行個體。Initializes a new instance of the CultureNotFoundException class with a specified error message and a reference to the inner exception that is the cause of this exception.

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

Parameters

message
String

與這個例外狀況一起顯示的錯誤訊息。The error message to display with this exception.

innerException
Exception

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

Remarks

此函式會使用 message 參數的值,初始化新實例的 Message 屬性。This constructor initializes the Message property of the new instance using the value of the message parameter. message 參數的內容必須能讓人了解。The content of the message parameter 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 屬性中包含先前例外狀況的參考。An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the InnerException property. InnerException 屬性傳回的值會與傳入建構函式的值相同,或傳回 null (如果 InnerException 屬性未提供內部例外狀況值給建構函式)。The InnerException property returns the same value that is passed into the constructor, or null if the InnerException property does not supply the inner exception value to the constructor.

CultureNotFoundException(String, String)

使用指定的錯誤訊息和造成這個例外狀況的參數名稱,初始化 CultureNotFoundException 類別的新執行個體。Initializes a new instance of the CultureNotFoundException class with a specified error message and the name of the parameter that is the cause this exception.

public:
 CultureNotFoundException(System::String ^ paramName, System::String ^ message);
public CultureNotFoundException (string paramName, string message);
new System.Globalization.CultureNotFoundException : string * string -> System.Globalization.CultureNotFoundException
Public Sub New (paramName As String, message As String)

Parameters

paramName
String

造成目前例外狀況的參數名稱。The name of the parameter that is the cause of the current exception.

message
String

與這個例外狀況一起顯示的錯誤訊息。The error message to display with this exception.

Remarks

此函式會使用 message 參數的值,初始化新實例的 Message 屬性。This constructor initializes the Message property of the new instance using the value of the message parameter. message 參數的內容必須能讓人了解。The content of the message parameter 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.

此函式會使用 paramName初始化新實例的 ParamName 屬性。This constructor initializes the ParamName property of the new instance using paramName. paramName 的內容必須能讓人了解。The content of paramName is intended to be understood by humans.

CultureNotFoundException 使用 HRESULT COR_E_ARGUMENT,其值為0x80070057。CultureNotFoundException uses the HRESULT COR_E_ARGUMENT, which has the value 0x80070057.

CultureNotFoundException(String, Int32, Exception)

使用指定的錯誤訊息、無效的文化特性 ID 和造成這個例外狀況的內部例外狀況的參考,初始化 CultureNotFoundException 類別的新執行個體。Initializes a new instance of the CultureNotFoundException class with a specified error message, the invalid Culture ID, and a reference to the inner exception that is the cause of this exception.

public:
 CultureNotFoundException(System::String ^ message, int invalidCultureId, Exception ^ innerException);
public CultureNotFoundException (string message, int invalidCultureId, Exception innerException);
new System.Globalization.CultureNotFoundException : string * int * Exception -> System.Globalization.CultureNotFoundException
Public Sub New (message As String, invalidCultureId As Integer, innerException As Exception)

Parameters

message
String

與這個例外狀況一起顯示的錯誤訊息。The error message to display with this exception.

invalidCultureId
Int32

找不到的文化特性 ID。The Culture ID that cannot be found.

innerException
Exception

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

Remarks

此函式會使用 message 參數的值,初始化新實例的 Message 屬性。This constructor initializes the Message property of the new instance using the value of the message parameter. message 參數的內容必須能讓人了解。The content of the message parameter 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 屬性。InnerException property. InnerException 屬性傳回的值會與傳入建構函式的值相同,或傳回 null (如果 InnerException 屬性未提供內部例外狀況值給建構函式)。The InnerException property returns the same value that is passed into the constructor, or null if the InnerException property does not supply the inner exception value to the constructor.

CultureNotFoundException(String, Int32, String)

使用指定的錯誤訊息、無效的文化特性 ID 和造成這個例外狀況的參數名稱,初始化 CultureNotFoundException 類別的新執行個體。Initializes a new instance of the CultureNotFoundException class with a specified error message, the invalid Culture ID, and the name of the parameter that is the cause this exception.

public:
 CultureNotFoundException(System::String ^ paramName, int invalidCultureId, System::String ^ message);
public CultureNotFoundException (string paramName, int invalidCultureId, string message);
new System.Globalization.CultureNotFoundException : string * int * string -> System.Globalization.CultureNotFoundException
Public Sub New (paramName As String, invalidCultureId As Integer, message As String)

Parameters

paramName
String

造成目前例外狀況的參數名稱。The name of the parameter that is the cause the current exception.

invalidCultureId
Int32

找不到的文化特性 ID。The Culture ID that cannot be found.

message
String

與這個例外狀況一起顯示的錯誤訊息。The error message to display with this exception.

Remarks

此函式會使用 message 參數的值,初始化新實例的 Message 屬性。This constructor initializes the Message property of the new instance using the value of the message parameter. message 參數的內容必須能讓人了解。The content of the message parameter 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.

此函式會使用 paramName初始化新實例的 ParamName 屬性。This constructor initializes the ParamName property of the new instance using paramName. paramName 的內容必須能讓人了解。The content of paramName is intended to be understood by humans.

CultureNotFoundException 使用 HRESULT COR_E_ARGUMENT,其值為0x80070057。CultureNotFoundException uses the HRESULT COR_E_ARGUMENT, which has the value 0x80070057.

CultureNotFoundException(String, String, Exception)

使用指定的錯誤訊息、無效的文化特性名稱和造成這個例外狀況的內部例外狀況的參考,初始化 CultureNotFoundException 類別的新執行個體。Initializes a new instance of the CultureNotFoundException class with a specified error message, the invalid Culture Name, and a reference to the inner exception that is the cause of this exception.

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

Parameters

message
String

與這個例外狀況一起顯示的錯誤訊息。The error message to display with this exception.

invalidCultureName
String

找不到的文化特性名稱。The Culture Name that cannot be found.

innerException
Exception

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

Remarks

此函式會使用 message 參數的值,初始化新實例的 Message 屬性。This constructor initializes the Message property of the new instance using the value of the message parameter. message 參數的內容必須能讓人了解。The content of the message parameter 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 屬性。InnerException property. InnerException 屬性傳回的值會與傳入建構函式的值相同,或傳回 null (如果 InnerException 屬性未提供內部例外狀況值給建構函式)。The InnerException property returns the same value that is passed into the constructor, or null if the InnerException property does not supply the inner exception value to the constructor.

CultureNotFoundException(String, String, String)

使用指定的錯誤訊息、無效的文化特性名稱和造成這個例外狀況的參數名稱,初始化 CultureNotFoundException 類別的新執行個體。Initializes a new instance of the CultureNotFoundException class with a specified error message, the invalid Culture Name, and the name of the parameter that is the cause this exception.

public:
 CultureNotFoundException(System::String ^ paramName, System::String ^ invalidCultureName, System::String ^ message);
public CultureNotFoundException (string paramName, string invalidCultureName, string message);
new System.Globalization.CultureNotFoundException : string * string * string -> System.Globalization.CultureNotFoundException
Public Sub New (paramName As String, invalidCultureName As String, message As String)

Parameters

paramName
String

造成目前例外狀況的參數名稱。The name of the parameter that is the cause the current exception.

invalidCultureName
String

找不到的文化特性名稱。The Culture Name that cannot be found.

message
String

與這個例外狀況一起顯示的錯誤訊息。The error message to display with this exception.

Remarks

此函式會使用 message 參數的值,初始化新實例的 Message 屬性。This constructor initializes the Message property of the new instance using the value of the message parameter. message 參數的內容必須能讓人了解。The content of the message parameter 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.

此函式會使用 paramName初始化新實例的 ParamName 屬性。This constructor initializes the ParamName property of the new instance using paramName. paramName 的內容必須能讓人了解。The content of paramName is intended to be understood by humans.

CultureNotFoundException 使用 HRESULT COR_E_ARGUMENT,其值為0x80070057。CultureNotFoundException uses the HRESULT COR_E_ARGUMENT, which has the value 0x80070057.

Applies to