ImageFormatConverter.GetStandardValues(ITypeDescriptorContext) 方法

定義

取得集合,含有用來設計這個驗證程式之資料型別的標準值集。 如果資料型別不支援標準值集,則傳回 null

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

格式子 (Formatter) 內容。 這個物件可用來取得環境的更多資訊,而這個轉換子就是從這個環境叫用的。 這可能是 null,所以您要隨時檢查。 此外,內容物件上的屬性也可能會傳回 null

傳回

TypeConverter.StandardValuesCollection

集合 (包含有效值的標準集) 或 null。 預設的實作 (Implementation) 一定會傳回 null

適用於