CursorConverter.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

傳回

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

適用於