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.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Returns the larger of two 32-bit signed integers.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Public Shared Function Max ( _
val1 As Integer, _
val2 As Integer _
) As Integer
public static int Max(
int val1,
int val2
)
public:
static int Max(
int val1,
int val2
)
static member Max :
val1:int *
val2:int -> int
public static function Max(
val1 : int,
val2 : int
) : int
Parameters
- val1
Type: System. . :: . .Int32
The first of two 32-bit signed integers to compare.
- val2
Type: System. . :: . .Int32
The second of two 32-bit signed integers to compare.
Return Value
Type: System. . :: . .Int32
Parameter val1 or val2, whichever is larger.
.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.