DataSourceViewSchemaConverter.GetStandardValues 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 a list of available values that can be assigned to a control property.
Overloads
GetStandardValues(ITypeDescriptorContext) |
Returns a list of available values that can be assigned to the associated control property. |
GetStandardValues(ITypeDescriptorContext, Type) |
Returns a list of available values that can be assigned to the associated control property. |
GetStandardValues(ITypeDescriptorContext)
Returns a list of available values that can be assigned to the associated control property.
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
Parameters
- context
- ITypeDescriptorContext
An ITypeDescriptorContext implementation that can be used to gain additional context information.
Returns
A TypeConverter.StandardValuesCollection containing available values for assignment to the associated control property.
Remarks
The GetStandardValues method uses the Instance property of the specified context
object to obtain an IDataSourceViewSchemaAccessor implementation. If the IDataSourceViewSchemaAccessor implementation is available, it is used to access the data source schema for the associated control at design time and retrieve the list of available fields from the associated data source schema view.
The collection of available values is built from the fields in the data source schema for the associated control.
See also
- GetFields()
- IDataSourceViewSchemaAccessor
- GetStandardValuesSupported(ITypeDescriptorContext)
- GetStandardValuesExclusive(ITypeDescriptorContext)
- TypeConverter
- Design-Time Architecture
Applies to
GetStandardValues(ITypeDescriptorContext, Type)
Returns a list of available values that can be assigned to the associated control property.
public:
virtual System::ComponentModel::TypeConverter::StandardValuesCollection ^ GetStandardValues(System::ComponentModel::ITypeDescriptorContext ^ context, Type ^ typeFilter);
public virtual System.ComponentModel.TypeConverter.StandardValuesCollection GetStandardValues (System.ComponentModel.ITypeDescriptorContext context, Type typeFilter);
override this.GetStandardValues : System.ComponentModel.ITypeDescriptorContext * Type -> System.ComponentModel.TypeConverter.StandardValuesCollection
Public Overridable Function GetStandardValues (context As ITypeDescriptorContext, typeFilter As Type) As TypeConverter.StandardValuesCollection
Parameters
- context
- ITypeDescriptorContext
An ITypeDescriptorContext implementation that can be used to gain additional context information.
- typeFilter
- Type
A type used to filter fields to include in the standard values list.
Returns
A TypeConverter.StandardValuesCollection containing available values for assignment to the associated control property.