ImageIndexConverter.GetStandardValuesExclusive(ITypeDescriptorContext) 方法

定義

判斷從 GetStandardValues 方法所傳回的標準值清單是否為獨佔清單。

public:
 override bool GetStandardValuesExclusive(System::ComponentModel::ITypeDescriptorContext ^ context);
public override bool GetStandardValuesExclusive (System.ComponentModel.ITypeDescriptorContext context);
public override bool GetStandardValuesExclusive (System.ComponentModel.ITypeDescriptorContext? context);
override this.GetStandardValuesExclusive : System.ComponentModel.ITypeDescriptorContext -> bool
Public Overrides Function GetStandardValuesExclusive (context As ITypeDescriptorContext) As Boolean

參數

context
ITypeDescriptorContext

格式子 (Formatter) 內容。

傳回

Boolean

如果 GetStandardValues 方法傳回有效值的獨佔清單,則為 true,否則為 false。 這個實作一律會傳回 false

備註

如果方法傳 GetStandardValues 回的清單是獨佔的,則沒有其他值有效。 這是列舉資料類型的一般。 如果清單不是獨佔的,則除了提供的標準值清單之外,還有其他有效值 GetStandardValues

如同在這個類型轉換器中實作,這個方法一律會傳 false 回 。

在嘗試使用 GetStandardValuesGetStandardValuesExclusive 方法之前,通常會 GetStandardValuesSupported 呼叫 方法。

適用於

另請參閱