Partager via


ValidationHelper.ValidationCollection Method (ICollection, String)

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Validates a collection.

Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.Core (in Microsoft.EnterpriseManagement.Core.dll)

Usage

'Usage
Dim collection As ICollection(Of T)
Dim paramName As String

ValidationHelper.ValidationCollection(collection, paramName)

Syntax

'Declaration
Public Shared Sub ValidationCollection(Of T) ( _
    collection As ICollection(Of T), _
    paramName As String _
)
public static void ValidationCollection<T> (
    ICollection<T> collection,
    string paramName
)
public:
generic<typename T>
static void ValidationCollection (
    ICollection<T>^ collection, 
    String^ paramName
)

GenericParameters

  • T
    Any type.

Parameters

  • collection
    The collection.
  • paramName
    The name of the parameter to throw the exception for.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows Server 2003, and

Target Platforms

Windows Server 2008,Windows Server 2003

See Also

Reference

ValidationHelper Class
ValidationHelper Members
Microsoft.EnterpriseManagement Namespace