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> 型別整數,則該型別會被用來取代陣列。

適用於