NullableConverter.GetStandardValues(ITypeDescriptorContext) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當提供格式上下文時,回傳一組標準值,針對此類型轉換器所設計的資料型別。
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
An ITypeDescriptorContext 提供一個格式上下文,可用來提取關於該轉換器所從環境的額外資訊。 這個參數或其性質可以是 null。
傳回
TypeConverter.StandardValuesCollection A 包含一個標準有效值集合,或null若資料型別不支援標準值集合。