CultureNotFoundException Sınıf
Tanım
Bir yöntem, kullanılamayan bir kültür oluşturmaya çalıştığında oluşturulan özel durum.The exception that is thrown when a method attempts to construct a culture that is not available.
public ref class CultureNotFoundException : ArgumentException
public class CultureNotFoundException : ArgumentException
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public class CultureNotFoundException : ArgumentException
type CultureNotFoundException = class
inherit ArgumentException
type CultureNotFoundException = class
inherit ArgumentException
interface ISerializable
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Serializable>]
type CultureNotFoundException = class
inherit ArgumentException
interface ISerializable
Public Class CultureNotFoundException
Inherits ArgumentException
- Devralma
- Devralma
- Öznitelikler
- Uygulamalar
Açıklamalar
Bir CultureNotFoundException Yöntem içinde geçersiz bir kültürün oluşturulması zaman içinde denendiğinde bir özel durum oluşturulur.A CultureNotFoundException exception is thrown whenever the construction of an invalid culture is eventually attempted within a method. En yaygın olarak, bu özel durum, aşağıdaki yöntemlerden birine yapılan bir çağrı bir kültür oluşturamazsa veya döndürmediğinde oluşur:Most commonly, this exception is thrown when a call to one of the following methods fails to create or return a culture:
CultureInfo.CultureInfo Kurucu.CultureInfo.CultureInfo constructors.
CultureInfo.CreateSpecificCultureYöntemi.The CultureInfo.CreateSpecificCulture method.
CultureInfo.GetCultureInfoYöntemi.The CultureInfo.GetCultureInfo method.
Uyarı
Windows 7 ve sonraki işletim sistemlerinde .NET Framework, işletim sisteminden kültür verileri alır.On Windows 7 and later operating systems, the .NET Framework retrieves culture data from the operating system. CultureNotFoundExceptionİşletim sistemi kültürü bulamazsa ve kültür özel bir kültür ya da değiştirme kültürü değilse, özel durum oluşturulur.The CultureNotFoundException exception is thrown if the operating system is unable to find the culture, and the culture is not a custom culture or a replacement culture.
Çağıran kod bir CultureInfo kültür adı kullanarak bir nesne örneğini oluşturmaya çalışıyorsa, InvalidCultureName özelliği geçersiz adı ve HasValue Nullable<T> özelliği tarafından döndürülen nesnenin özelliğini içerir InvalidCultureId false .If the calling code attempted to instantiate a CultureInfo object by using a culture name, the InvalidCultureName property contains the invalid name, and the HasValue property of the Nullable<T> object returned by the InvalidCultureId property is false. Çağıran kod bir CultureInfo kültür tanımlayıcısı kullanarak bir nesne örneğini oluşturmaya çalışıyorsa, Value Nullable<T> özelliği tarafından döndürülen nesnenin özelliği InvalidCultureId geçersiz tanımlayıcıyı ve özelliğinin değerini içerir InvalidCultureName null .If the calling code attempted to instantiate a CultureInfo object by using a culture identifier, the Value property of the Nullable<T> object returned by the InvalidCultureId property contains the invalid identifier, and the value of the InvalidCultureName property is null.
CultureNotFoundException 0x80070057 değerine sahip olan HRESULT COR_E_ARGUMENT kullanır.CultureNotFoundException uses the HRESULT COR_E_ARGUMENT, which has the value 0x80070057.
Oluşturucular
| CultureNotFoundException() |
CultureNotFoundExceptionSınıfının, ileti dizesi sistem tarafından sağlanan bir ileti olarak ayarlanan yeni bir örneğini başlatır.Initializes a new instance of the CultureNotFoundException class with its message string set to a system-supplied message. |
| CultureNotFoundException(SerializationInfo, StreamingContext) |
CultureNotFoundExceptionBelirtilen serileştirme verileri ve bağlamı kullanılarak sınıfın yeni bir örneğini başlatır.Initializes a new instance of the CultureNotFoundException class using the specified serialization data and context. |
| CultureNotFoundException(String) |
CultureNotFoundExceptionBelirtilen hata iletisiyle sınıfın yeni bir örneğini başlatır.Initializes a new instance of the CultureNotFoundException class with the specified error message. |
| CultureNotFoundException(String, Exception) |
CultureNotFoundExceptionBelirtilen bir hata iletisiyle sınıfın yeni bir örneğini ve bu özel durumun nedeni olan iç özel duruma bir başvuruyu başlatır.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, Int32, Exception) |
CultureNotFoundExceptionBelirtilen bir hata iletisiyle sınıfın yeni bir örneğini, geçersiz kültür kimliğini ve bu özel durumun nedeni olan iç özel duruma bir başvuruyu başlatır.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) |
CultureNotFoundExceptionBelirtilen bir hata iletisi, geçersiz kültür kimliği ve bu özel duruma neden olan parametrenin adı ile sınıfın yeni bir örneğini başlatır.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) |
Belirtilen bir hata iletisiyle sınıfın yeni bir örneğini başlatır CultureNotFoundException ve bu özel duruma neden olan parametrenin adı.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, String, Exception) |
CultureNotFoundExceptionBelirtilen bir hata iletisiyle sınıfın yeni bir örneğini, geçersiz kültür adını ve bu özel durumun nedeni olan iç özel duruma bir başvuruyu başlatır.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) |
CultureNotFoundExceptionBelirtilen bir hata iletisi, geçersiz kültür adı ve bu özel duruma neden olan parametrenin adı ile sınıfın yeni bir örneğini başlatır.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. |
Özellikler
| Data |
Özel durum hakkında ek kullanıcı tanımlı bilgiler sağlayan anahtar/değer çiftleri koleksiyonunu alır.Gets a collection of key/value pairs that provide additional user-defined information about the exception. (Devralındığı yer: Exception) |
| HelpLink |
Bu özel durumla ilişkili Yardım dosyasının bağlantısını alır veya ayarlar.Gets or sets a link to the help file associated with this exception. (Devralındığı yer: Exception) |
| HResult |
Belirli bir özel duruma atanan kodlanmış bir sayısal değer olan HRESULT 'yi alır veya ayarlar.Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception. (Devralındığı yer: Exception) |
| InnerException |
ExceptionGeçerli özel duruma neden olan örneği alır.Gets the Exception instance that caused the current exception. (Devralındığı yer: Exception) |
| InvalidCultureId |
Bulunamayan kültür tanımlayıcısını alır.Gets the culture identifier that cannot be found. |
| InvalidCultureName |
Bulunamayan kültür adını alır.Gets the culture name that cannot be found. |
| Message |
Özel durumun nedenini açıklayan hata iletisini alır.Gets the error message that explains the reason for the exception. |
| ParamName |
Bu özel duruma neden olan parametrenin adını alır.Gets the name of the parameter that causes this exception. (Devralındığı yer: ArgumentException) |
| Source |
Uygulamanın veya hataya neden olan nesnenin adını alır veya ayarlar.Gets or sets the name of the application or the object that causes the error. (Devralındığı yer: Exception) |
| StackTrace |
Çağrı yığınında anlık çerçevelerin dize gösterimini alır.Gets a string representation of the immediate frames on the call stack. (Devralındığı yer: Exception) |
| TargetSite |
Geçerli özel durumu oluşturan yöntemi alır.Gets the method that throws the current exception. (Devralındığı yer: Exception) |
Yöntemler
| Equals(Object) |
Belirtilen nesnenin geçerli nesneye eşit olup olmadığını belirler.Determines whether the specified object is equal to the current object. (Devralındığı yer: Object) |
| GetBaseException() |
Türetilmiş bir sınıfta geçersiz kılınırsa, Exception bir veya daha fazla sonraki özel durumun kök nedeni olan öğesini döndürür.When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions. (Devralındığı yer: Exception) |
| GetHashCode() |
Varsayılan karma işlevi olarak işlev görür.Serves as the default hash function. (Devralındığı yer: Object) |
| GetObjectData(SerializationInfo, StreamingContext) |
SerializationInfoNesneyi parametre adı ve ek özel durum bilgileri ile ayarlar.Sets the SerializationInfo object with the parameter name and additional exception information. |
| GetObjectData(SerializationInfo, StreamingContext) |
SerializationInfoNesneyi parametre adı ve ek özel durum bilgileri ile ayarlar.Sets the SerializationInfo object with the parameter name and additional exception information. (Devralındığı yer: ArgumentException) |
| GetType() |
Geçerli örneğin çalışma zamanı türünü alır.Gets the runtime type of the current instance. (Devralındığı yer: Exception) |
| MemberwiseClone() |
Geçerli bir basit kopyasını oluşturur Object .Creates a shallow copy of the current Object. (Devralındığı yer: Object) |
| ToString() |
Geçerli özel durumun dize gösterimini oluşturur ve döndürür.Creates and returns a string representation of the current exception. (Devralındığı yer: Exception) |
Ekinlikler
| SerializeObjectState |
Özel durum hakkında serileştirilmiş veri içeren bir özel durum nesnesi oluşturmak için bir özel durum serileştirildiğinde gerçekleşir.Occurs when an exception is serialized to create an exception state object that contains serialized data about the exception. (Devralındığı yer: Exception) |