Well I am making an assumption, and without seeing the documentation for the device I cannot be 100% certain, but I would expect it to be (in normal C/C++) something like:
int command0[10] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x02, i, 0x00, 0x00, y };
for (end=0; end<10; end++)
{
this->_serialPort->Write(command0[end]);
}
Incidentally, is there a good reason why you are using C++/CLI rather than unmanaged C++?