CultureNotFoundException CultureNotFoundException CultureNotFoundException CultureNotFoundException Constructors

定義

多載

CultureNotFoundException() CultureNotFoundException() CultureNotFoundException()

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

CultureNotFoundException(String) CultureNotFoundException(String) CultureNotFoundException(String) CultureNotFoundException(String)

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

CultureNotFoundException(SerializationInfo, StreamingContext) CultureNotFoundException(SerializationInfo, StreamingContext) CultureNotFoundException(SerializationInfo, StreamingContext) CultureNotFoundException(SerializationInfo, StreamingContext)

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

CultureNotFoundException(String, Exception) CultureNotFoundException(String, Exception) CultureNotFoundException(String, Exception) 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(String, String) CultureNotFoundException(String, String) 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) CultureNotFoundException(String, Int32, Exception) CultureNotFoundException(String, Int32, 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) CultureNotFoundException(String, Int32, String) CultureNotFoundException(String, Int32, String) 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(String, String, Exception) CultureNotFoundException(String, String, 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(String, String, String) CultureNotFoundException(String, String, String) 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.

備註

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

CultureNotFoundException() CultureNotFoundException() 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 ()

備註

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

CultureNotFoundException(String) CultureNotFoundException(String) CultureNotFoundException(String) 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)

參數

message
String String String String

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

備註

這個函式會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(SerializationInfo, StreamingContext) CultureNotFoundException(SerializationInfo, StreamingContext) 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)

參數

info
SerializationInfo SerializationInfo SerializationInfo SerializationInfo

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

context
StreamingContext StreamingContext StreamingContext StreamingContext

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

備註

進行還原序列化 (Deserialization) 期間會呼叫這個建構函式,以便重新構成經由資料流傳送的例外狀況物件。This constructor is called during deserialization to reconstitute the exception object transmitted over a stream.

CultureNotFoundException(String, Exception) CultureNotFoundException(String, Exception) CultureNotFoundException(String, Exception) 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)

參數

message
String String String String

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

innerException
Exception Exception Exception 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.

備註

這個函式會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 屬性沒有提供內部例外值給建構函式,則傳回 InnerExceptionThe 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(String, String) CultureNotFoundException(String, String) 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)

參數

paramName
String String String String

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

message
String String String String

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

備註

這個函式會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) CultureNotFoundException(String, Int32, Exception) CultureNotFoundException(String, Int32, 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.

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)

參數

message
String String String String

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

invalidCultureId
Int32 Int32 Int32 Int32

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

innerException
Exception Exception Exception 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.

備註

這個函式會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 屬性沒有提供內部例外值給建構函式,則傳回 InnerExceptionThe 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) CultureNotFoundException(String, Int32, String) CultureNotFoundException(String, Int32, String) 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)

參數

paramName
String String String String

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

invalidCultureId
Int32 Int32 Int32 Int32

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

message
String String String String

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

備註

這個函式會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(String, String, Exception) CultureNotFoundException(String, String, 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.

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)

參數

message
String String String String

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

invalidCultureName
String String String String

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

innerException
Exception Exception Exception 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.

備註

這個函式會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 屬性沒有提供內部例外值給建構函式,則傳回 InnerExceptionThe 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(String, String, String) CultureNotFoundException(String, String, String) 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)

參數

paramName
String String String String

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

invalidCultureName
String String String String

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

message
String String String String

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

備註

這個函式會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.

適用於