Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ControlIDConverter.GetStandardValues Method (ITypeDescriptorContext)

Returns a collection of control IDs from the container within the IDesignerHost when provided with a format context.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public override TypeConverter.StandardValuesCollection GetStandardValues(
	ITypeDescriptorContext context
)

Parameters

context
Type: System.ComponentModel.ITypeDescriptorContext

An ITypeDescriptorContext that provides a format context that can be used to extract additional information about the environment from which this converter is invoked. This parameter or properties of this parameter can be null.

Return Value

Type: System.ComponentModel.TypeConverter.StandardValuesCollection
A TypeConverter.StandardValuesCollection that holds a set of strings representing the control IDs of the controls in the current container. If no controls are currently contained, an empty collection is returned. If the context is null or there is no current container, then null is returned.

The FilterControl method is called on each control found in the container. The control ID is only added to the TypeConverter.StandardValuesCollection if the method returns true.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft