ImportOptions.ReferencedCollectionTypes 属性

定义

获取一个类型的集合,该集合表示在生成集合代码时应引用的数据协定集合,例如项的列表或字典。

public:
 property System::Collections::Generic::ICollection<Type ^> ^ ReferencedCollectionTypes { System::Collections::Generic::ICollection<Type ^> ^ get(); };
public System.Collections.Generic.ICollection<Type> ReferencedCollectionTypes { get; }
member this.ReferencedCollectionTypes : System.Collections.Generic.ICollection<Type>
Public ReadOnly Property ReferencedCollectionTypes As ICollection(Of Type)

属性值

一个 ICollection<T> 包含引用的集合类型。

注解

默认情况下,导入集合架构时将生成数组(除非架构具有提及不同类型的特殊注释)。 但是,如果集合中 ReferencedCollectionTypes 存在匹配类型,将使用该类型。 例如,导入包含整数列表的架构时,通常会生成整数数组。 但是,如果集合包含 LinkedList<T> 整数类型,将使用该类型而不是数组。

适用于