FlowControl.ForNextCheckDec(Decimal, Decimal, Decimal) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
檢查迴圈計數器的有效值, Step以及 To 值。
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。
public:
static bool ForNextCheckDec(System::Decimal count, System::Decimal limit, System::Decimal StepValue);
public static bool ForNextCheckDec(decimal count, decimal limit, decimal StepValue);
static member ForNextCheckDec : decimal * decimal * decimal -> bool
Public Function ForNextCheckDec (count As Decimal, limit As Decimal, StepValue As Decimal) As Boolean
Public Shared Function ForNextCheckDec (count As Decimal, limit As Decimal, StepValue As Decimal) As Boolean
參數
- count
- Decimal
必須的。 代表 Decimal 迴圈計數器變數所傳遞的初始值。
- limit
- Decimal
必須的。 一個 Decimal 代表使用 To 關鍵字傳遞的值。
- StepValue
- Decimal
必須的。 一個 Decimal 代表使用 Step 關鍵字傳遞的值。
傳回
True 若 StepValue 大於零且 count 小於或等於 limit,或若 StepValue 小於或等於零且 count 大於 ; limit否則, False。
備註
這門課支援 Visual Basic 編譯器,並非直接從你的程式碼中使用。