Delen via


XamlDataDrivenToolTask.ValidateInteger Method

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.String

    The name of the switch to check.

Return Value

Type: System.Boolean
true if the value is within the specified range.

.NET Framework Security

See Also

Reference

XamlDataDrivenToolTask Class

Microsoft.Build.Tasks.Xaml Namespace