KeysConverter.GetStandardValues(ITypeDescriptorContext) 方法

定義

當有提供格式內容時,傳回這個型別轉換子設計來轉換之資料型別的標準值集合。

public:
 override System::ComponentModel::TypeConverter::StandardValuesCollection ^ GetStandardValues(System::ComponentModel::ITypeDescriptorContext ^ context);
public override System.ComponentModel.TypeConverter.StandardValuesCollection GetStandardValues (System.ComponentModel.ITypeDescriptorContext context);
public override System.ComponentModel.TypeConverter.StandardValuesCollection GetStandardValues (System.ComponentModel.ITypeDescriptorContext? context);
override this.GetStandardValues : System.ComponentModel.ITypeDescriptorContext -> System.ComponentModel.TypeConverter.StandardValuesCollection
Public Overrides Function GetStandardValues (context As ITypeDescriptorContext) As TypeConverter.StandardValuesCollection

參數

context
ITypeDescriptorContext

ITypeDescriptorContext,提供格式內容,可以用來擷取與正在叫用此轉換子之環境有關的其他資訊。 這個參數或這個參數的屬性可為 null

傳回

TypeConverter.StandardValuesCollection,其中保留標準有效值的集合,但如果資料型別不支援標準值集合,則為空的。

備註

傳回的集合包含可轉換之索引鍵的值。

適用於

另請參閱