IComponentModel.GetExtensions<T> 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从默认的组合容器中获取 "extension" 的枚举,即,给定的组合容器中可以有多个实例的对象。 等于直接调用 GetExportedValues<T>() 。
public:
generic <typename T>
where T : class System::Collections::Generic::IEnumerable<T> ^ GetExtensions();
public System.Collections.Generic.IEnumerable<T> GetExtensions<T> () where T : class;
abstract member GetExtensions : unit -> seq<'T (requires 'T : null)> (requires 'T : null)
Public Function GetExtensions(Of T As Class) () As IEnumerable(Of T)
类型参数
- T
要获取的对象类型。
返回
- IEnumerable<T>
) ( (请求对象的实例) 。