AsyncPostBackTriggerControlIDConverter.GetStandardValues(ITypeDescriptorContext) 方法

定义

在提供了格式上下文时,返回 IDesignerHost 对象中的容器中控件 ID 的集合。Returns a collection of control IDs from the container in the IDesignerHost object when provided with a format context.

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

一个提供格式上下文的对象,可用来提取有关从中调用此转换器的环境的附加信息。An object that provides a format context that can be used to extract additional information about the environment from which this converter is invoked. 此参数或此参数的属性可以为 nullThis parameter, or properties of this parameter, can be null.

返回

TypeConverter.StandardValuesCollection

一个对象,它保存了一组表示当前容器中控件的控件 ID 的字符串。An object that holds a set of strings that represent the control IDs of the controls in the current container. 如果此容器中没有控件,将返回一个空集合。If the container has no controls, returns an empty collection. 如果上下文为 null 或者没有当前容器,将返回 nullIf the context is null or if there is no current container, returns null.

适用于