TypeConverter.GetStandardValuesSupported Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns whether this object supports a standard set of values that can be picked from a list.
Overloads
GetStandardValuesSupported() |
Returns whether this object supports a standard set of values that can be picked from a list. |
GetStandardValuesSupported(ITypeDescriptorContext) |
Returns whether this object supports a standard set of values that can be picked from a list, using the specified context. |
GetStandardValuesSupported()
- Source:
- TypeConverter.cs
- Source:
- TypeConverter.cs
- Source:
- TypeConverter.cs
Returns whether this object supports a standard set of values that can be picked from a list.
public:
bool GetStandardValuesSupported();
public bool GetStandardValuesSupported ();
member this.GetStandardValuesSupported : unit -> bool
Public Function GetStandardValuesSupported () As Boolean
Returns
true
if GetStandardValues() should be called to find a common set of values the object supports; otherwise, false
.
Applies to
GetStandardValuesSupported(ITypeDescriptorContext)
- Source:
- TypeConverter.cs
- Source:
- TypeConverter.cs
- Source:
- TypeConverter.cs
Returns whether this object supports a standard set of values that can be picked from a list, using the specified context.
public:
virtual bool GetStandardValuesSupported(System::ComponentModel::ITypeDescriptorContext ^ context);
public virtual bool GetStandardValuesSupported (System.ComponentModel.ITypeDescriptorContext context);
public virtual bool GetStandardValuesSupported (System.ComponentModel.ITypeDescriptorContext? context);
abstract member GetStandardValuesSupported : System.ComponentModel.ITypeDescriptorContext -> bool
override this.GetStandardValuesSupported : System.ComponentModel.ITypeDescriptorContext -> bool
Public Overridable Function GetStandardValuesSupported (context As ITypeDescriptorContext) As Boolean
Parameters
- context
- ITypeDescriptorContext
An ITypeDescriptorContext that provides a format context.
Returns
true
if GetStandardValues() should be called to find a common set of values the object supports; otherwise, false
.
Remarks
As implemented in this class, this method always returns false
.
Use the context
parameter to extract additional information about the environment from which this converter is invoked. This parameter can be null
, so always check it. Also, properties on the context object can return null
.
Notes to Inheritors
Override this method if the type you want to convert supports standard values.