CultureInfoConverter.GetStandardValuesSupported 方法

定義

取得值,指出這個物件是否支援可以使用指定內容從清單選取的標準值集合。

public:
 override bool GetStandardValuesSupported(System::ComponentModel::ITypeDescriptorContext ^ context);
public override bool GetStandardValuesSupported (System.ComponentModel.ITypeDescriptorContext context);
public override bool GetStandardValuesSupported (System.ComponentModel.ITypeDescriptorContext? context);
override this.GetStandardValuesSupported : System.ComponentModel.ITypeDescriptorContext -> bool
Public Overrides Function GetStandardValuesSupported (context As ITypeDescriptorContext) As Boolean

參數

context
ITypeDescriptorContext

提供格式內容的 ITypeDescriptorContext

傳回

因為應該呼叫 GetStandardValues(ITypeDescriptorContext) 來尋找物件支援的通用值集合,所以會是 true。 這個方法永遠不會傳回 false

備註

可以使用 context 參數來擷取環境的其他資訊,而這個轉換子就是從這個環境叫用的。 這可能是 null,所以一定要檢查。 甚至,內容物件上的屬性可能會傳回 null

適用於