Version

VerifyNewDateCount Method

Used to determine if the number of items that will be in the collection is allowed.
Syntax
'Declaration
 
Protected Overridable Sub VerifyNewDateCount( _
   ByRef newItemCount As Integer, _
   ByVal validate As Boolean _
) 
protected virtual void VerifyNewDateCount( 
   ref int newItemCount,
   bool validate
)

Parameters

newItemCount
The new item count. This is passed by reference and when validate is false, this should be updated to reflect the constrained value if it exceeds the maximum
validate
True if an exception should be thrown if the new count exceeds the allowed
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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