XamlDataDrivenToolTask.ValidateInteger(String, Int32, Int32, Int32) Method

Definition

A method that will validate the integer type arguments If the min or max is set, and the value a property is set to is not within the range, the build fails

public:
 bool ValidateInteger(System::String ^ switchName, int min, int max, int value);
public bool ValidateInteger (string switchName, int min, int max, int value);
member this.ValidateInteger : string * int * int * int -> bool
Public Function ValidateInteger (switchName As String, min As Integer, max As Integer, value As Integer) As Boolean

Parameters

switchName
String

The name of the switch to check.

min
Int32

The minimum value.

max
Int32

The maximum value.

value
Int32

The value of the property.

Returns

true if the value is within the specified range.

Applies to