CultureNotFoundException.InvalidCultureId CultureNotFoundException.InvalidCultureId CultureNotFoundException.InvalidCultureId CultureNotFoundException.InvalidCultureId Property

定義

取得找不到的文化特性識別碼。Gets the culture identifier that cannot be found.

public:
 virtual property Nullable<int> InvalidCultureId { Nullable<int> get(); };
public virtual Nullable<int> InvalidCultureId { get; }
member this.InvalidCultureId : Nullable<int>
Public Overridable ReadOnly Property InvalidCultureId As Nullable(Of Integer)

屬性值

無效的文化特性識別碼。The invalid culture identifier.

備註

如果呼叫程式碼嘗試使用不正確文化特性CultureInfo識別碼來具現化或抓取物件Value , InvalidCultureId屬性所傳回Nullable<T>之物件的屬性會包含不正確識別碼。If the calling code attempted to instantiate or retrieve a CultureInfo object by using an invalid culture identifier, the Value property of the Nullable<T> object returned by the InvalidCultureId property contains the invalid identifier. 否則, 其HasValue屬性為falseOtherwise, its HasValue property is false.

適用於