このコマンドがバッチモードで使用されるものか(false)、されないものか(true)を示すBoolean値を戻します。このプロパティは、Command.GetFlagのショートカットです。
注:このプロパティは読み取り専用です。
// get accessor Boolean rtn = Command.CannotBeUsedInBatch; |
/*
See if a command can be used in batch mode.
*/
var oCmd = Commands.Item("Apply Operator");
if ( true == oCmd.CannotBeUsedInBatch )
{
LogMessage(oCmd.Name + " cannot be used in batch mode.");
}
else
{
LogMessage(oCmd.Name + " can be used in batch mode.");
} |