CommandInCycle屬性

描述
傳回顯示某方法是否正在執行。

語法
ReadOnly Property CommandInCycle As Boolean

傳回值
方法正在執行時,布林值為True,未執行時則為False。

另請參閱
AsyncMode屬性

CommandInCycle範例
VB 例:

If m_spel.CommandInCycle Then  
    MsgBox "A SPEL command is executing, operation aborted"  
End If  

C# 例:

if (m_spel.CommandInCycle)  
    MessageBox.Show("SPEL command is executing, operation aborted");