語言

OptionalProperty.IsCollectionDefined 方法

定義

多載

IsCollectionDefined<T>(IEnumerable<T>)

public:
generic <typename T>
 static bool IsCollectionDefined(System::Collections::Generic::IEnumerable<T> ^ collection);
public static bool IsCollectionDefined<T>(System.Collections.Generic.IEnumerable<T> collection);
static member IsCollectionDefined : seq<'T> -> bool
Public Shared Function IsCollectionDefined(Of T) (collection As IEnumerable(Of T)) As Boolean

類型參數

T

參數

collection
IEnumerable<T>

傳回

適用於

IsCollectionDefined<TKey,TValue>(IDictionary<TKey,TValue>)

public:
generic <typename TKey, typename TValue>
 static bool IsCollectionDefined(System::Collections::Generic::IDictionary<TKey, TValue> ^ collection);
public static bool IsCollectionDefined<TKey,TValue>(System.Collections.Generic.IDictionary<TKey,TValue> collection);
static member IsCollectionDefined : System.Collections.Generic.IDictionary<'Key, 'Value> -> bool
Public Shared Function IsCollectionDefined(Of TKey, TValue) (collection As IDictionary(Of TKey, TValue)) As Boolean

類型參數

TKey
TValue

參數

傳回

適用於

IsCollectionDefined<TKey,TValue>(IReadOnlyDictionary<TKey,TValue>)

public:
generic <typename TKey, typename TValue>
 static bool IsCollectionDefined(System::Collections::Generic::IReadOnlyDictionary<TKey, TValue> ^ collection);
public static bool IsCollectionDefined<TKey,TValue>(System.Collections.Generic.IReadOnlyDictionary<TKey,TValue> collection);
static member IsCollectionDefined : System.Collections.Generic.IReadOnlyDictionary<'Key, 'Value> -> bool
Public Shared Function IsCollectionDefined(Of TKey, TValue) (collection As IReadOnlyDictionary(Of TKey, TValue)) As Boolean

類型參數

TKey
TValue

參數

傳回

適用於