LogConverter.GetStandardValues(ITypeDescriptorContext) 方法

定義

針對這個驗證程式設計目標的資料型別,取得由該資料型別的標準值所組成的集合。

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,或者如果資料類型不支援標準值集合,則為 null

備註

可以使用 context 參數來擷取環境的其他資訊,而這個轉換子就是從這個環境叫用的。 這可能是 null,所以一定要檢查。 甚至,內容物件上的屬性可能會傳回 null

適用於

另請參閱