Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Checks an integer property to see if it is within a specified range.
MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.
Namespace: Microsoft.Build.Tasks.Xaml
Assembly: Microsoft.Build.Tasks.Core (in Microsoft.Build.Tasks.Core.dll)
Syntax
'Declaration
Public Function ValidateInteger ( _
switchName As String, _
min As Integer, _
max As Integer, _
value As Integer _
) As Boolean
public bool ValidateInteger(
string switchName,
int min,
int max,
int value
)
public:
bool ValidateInteger(
String^ switchName,
int min,
int max,
int value
)
member ValidateInteger :
switchName:string *
min:int *
max:int *
value:int -> bool
public function ValidateInteger(
switchName : String,
min : int,
max : int,
value : int
) : boolean
Parameters
switchName
Type: System.StringThe name of the switch to check.
min
Type: System.Int32The minimum value.
max
Type: System.Int32The maximum value.
value
Type: System.Int32The value of the property.
Return Value
Type: System.Boolean
true if the value is within the specified range.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.