Partager via


ValidationHelper.ValidateNullableInt Method

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Validates an integer.

Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.Core (in Microsoft.EnterpriseManagement.Core.dll)

Usage

'Usage
Dim value As Nullable(Of Integer)
Dim minValue As Integer
Dim maxValue As Integer
Dim paramName As String

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

Syntax

'Declaration
Public Shared Sub ValidateNullableInt ( _
    value As Nullable(Of Integer), _
    minValue As Integer, _
    maxValue As Integer, _
    paramName As String _
)
public static void ValidateNullableInt (
    Nullable<int> value,
    int minValue,
    int maxValue,
    string paramName
)
public:
static void ValidateNullableInt (
    Nullable<int> value, 
    int minValue, 
    int maxValue, 
    String^ paramName
)
public static void ValidateNullableInt (
    Nullable<int> value, 
    int minValue, 
    int maxValue, 
    String paramName
)
public static function ValidateNullableInt (
    value : Nullable<int>, 
    minValue : int, 
    maxValue : int, 
    paramName : String
)

Parameters

  • value
    The value to validate.
  • minValue
    The minimum value.
  • maxValue
    The maximum 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 Vista, Windows Server 2003, and

Target Platforms

Windows Server 2008,Windows Server 2003

See Also

Reference

ValidationHelper Class
ValidationHelper Members
Microsoft.EnterpriseManagement Namespace