[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]Validates an enumerator. Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.Core (in microsoft.enterprisemanagement.core.dll)

Usage

Visual Basic
Dim value As Integer
Dim minValue As Integer
Dim maxValue As Integer
Dim paramName As String

ValidationHelper.ValidateEnum(value, minValue, maxValue, paramName)

Syntax

Visual Basic
Public Shared Sub ValidateEnum ( _
		value As Integer, _
		minValue As Integer, _
		maxValue As Integer, _
		paramName As String _
)
C#
public static void ValidateEnum (
		int value,
		int minValue,
		int maxValue,
		string paramName
)
C++
public:
static void ValidateEnum (
		int value, 
		int minValue, 
		int maxValue, 
		String^ paramName
)
J#
public static void ValidateEnum (
		int value, 
		int minValue, 
		int maxValue, 
		String paramName
)
JScript
public static function ValidateEnum (
		value : int, 
		minValue : int, 
		maxValue : int, 
		paramName : String
)

Parameters

value

The value to validate.

minValue

The minimum enumeration value.

maxValue

The maximum enumeration value.

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 Server 2008, Windows Vista, Windows Server 2003, and Windows XP

Target Platforms

Windows Server 2008,Windows Server 2003

See Also