UInt64.Clamp(UInt64, UInt64, UInt64) Método
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Fixa um valor a um valor mínimo inclusivo e máximo.
public:
static System::UInt64 Clamp(System::UInt64 value, System::UInt64 min, System::UInt64 max) = System::Numerics::INumber<System::UInt64>::Clamp;
public static ulong Clamp(ulong value, ulong min, ulong max);
static member Clamp : uint64 * uint64 * uint64 -> uint64
Public Shared Function Clamp (value As ULong, min As ULong, max As ULong) As ULong
- value
- UInt64
O valor a ser fixado.
- min
- UInt64
O mínimo inclusivo ao qual value
deve ser fixado.
- max
- UInt64
O máximo inclusivo ao qual value
deve ser fixado.
O resultado da fixação value
no intervalo inclusivo de min
e max
.
Produto | Versões |
---|---|
.NET | 7, 8, 9, 10 |
Comentários do .NET
O .NET é um projeto código aberto. Selecione um link para fornecer comentários: