AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

ArgumentHelper..::..AssertNotEmptyNotNullAndLength Method

Ensures that arg is not null. If it is, an ArgumentNullException is thrown. If it is an empty string an ArgumentNullException is thrown. If it is greater than max length an ArgumentOutOfRangeException is thrown.

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

Syntax


public static void AssertNotEmptyNotNullAndLength(
	string arg,
	string argName,
	int maxLength
)

Parameters

arg
Type: String
The argument to check for null.
argName
Type: String
The name of the argument.
maxLength
Type: Int32
Max length of argument.

Exceptions


ExceptionCondition
ArgumentOutOfRangeException