ReferenceConverter.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
提供格式背景的一個 ITypeDescriptorContext 。
傳回
TypeConverter.StandardValuesCollection A 包含一個標準有效值集合,或null若資料型別不支援標準值集合。
備註
該 context 參數可用來擷取關於該轉換器所調用環境的額外資訊。 這可能會是 null,所以一定要檢查。 此外,上下文物件上的屬性也可以回傳 null。