ArgumentUtility.CheckCollectionForNullOrEmpty<T>, méthode (ICollection<T>, String)
Espace de noms : Microsoft.VisualStudio.Services.Common
Assembly : Microsoft.VisualStudio.Services.Common (dans Microsoft.VisualStudio.Services.Common.dll)
Syntaxe
'Déclaration
Public Shared Sub CheckCollectionForNullOrEmpty(Of T) ( _
collection As ICollection(Of T), _
collectionName As String _
)
public static void CheckCollectionForNullOrEmpty<T>(
ICollection<T> collection,
string collectionName
)
Paramètres de type
- T
Paramètres
- collection
Type : System.Collections.Generic.ICollection<T>
- collectionName
Type : System.String
Sécurité .NET Framework
- Confiance totale accordée à l'appelant immédiat. Ce membre ne peut pas être utilisé par du code d'un niveau de confiance partiel. Pour plus d'informations, consultez Utilisation de bibliothèques à partir de code d'un niveau de confiance partiel.