AVEVA OMI Software Developer Kit



ArchestrA.Client.CommonUtil Namespace > ThrowHelper Class : ThrowIfArgumentNullOrEmpty<T> Method
Type
The argument.
Name of the argument.
ThrowIfArgumentNullOrEmpty<T> Method
Throws if argument is null or empty.
Syntax
'Declaration
 
Public Shared Sub ThrowIfArgumentNullOrEmpty(Of T)( _
   ByVal argument As IEnumerable(Of T), _
   ByVal argumentName As String _
) 
'Usage
 
Dim argument As IEnumerable(Of T)
Dim argumentName As String
 
ThrowHelper.ThrowIfArgumentNullOrEmpty(Of T)(argument, argumentName)
public static void ThrowIfArgumentNullOrEmpty<T>( 
   IEnumerable<T> argument,
   string argumentName
)
public:
static void ThrowIfArgumentNullOrEmptygeneric<typename T>
( 
   IEnumerable<T^>^ argument,
   String^ argumentName
) 

Parameters

argument
The argument.
argumentName
Name of the argument.

Type Parameters

T
Type
Exceptions
ExceptionDescription
throws an instance of ArgumentNullException
Value must not be empty.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also