共用方式為


IReadOnlyCollection<T> 介面

定義

透過集合公開 Count 屬性的簡單介面

generic <typename T>
public interface class IReadOnlyCollection : Microsoft::VisualStudio::GraphModel::IHasGraphOwner, System::Collections::Generic::IEnumerable<T>
public interface IReadOnlyCollection<T> : Microsoft.VisualStudio.GraphModel.IHasGraphOwner, System.Collections.Generic.IEnumerable<T>
type IReadOnlyCollection<'T> = interface
    interface seq<'T>
    interface IEnumerable
    interface IHasGraphOwner
Public Interface IReadOnlyCollection(Of T)
Implements IEnumerable(Of T), IHasGraphOwner

類型參數

T
衍生
實作

屬性

Count

透過集合公開 Count 屬性的簡單介面

Owner

取得這個物件所屬的 Graph。

(繼承來源 IHasGraphOwner)

擴充方法

EmptyIfNull<T>(IEnumerable<T>)

如果不是 Null,則傳回這個列舉。 如果是 null,則傳回空列舉。

適用於