AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

ArgumentHelper..::..AssertOutOfRange Method

Ensures that arg is within the specifed range. If it is not, an ArgumentOutOfRangeException is thrown.

Namespace:  AdvantageCMS.Core.Common.SitemapGenerator
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public static void AssertOutOfRange(
	int arg,
	string argName,
	Nullable<int> minValue,
	Nullable<int> maxValue
)

Parameters

arg
Type: Int32
The argument to check if it is out of range.
argName
Type: String
The name of the argument.
minValue
Type: Nullable<(Of <(<'Int32>)>)>
Min length to check for (null if no check).
maxValue
Type: Nullable<(Of <(<'Int32>)>)>
Max length to check for (null if no check).

Exceptions


ExceptionCondition
ArgumentOutOfRangeException