public void Reply (string aReplyString)
This method replies to a command execution that is currently
in the UVS_REPLY state. Many commands require a user response. Use
the Reply ( ) method to issue the correct response
to a command. Call this method whenever the CommandStatus property returns UVS_REPLY.
string aReplyString is the string to
send to the server as a response.
If this method fails, it throws
a UniCommandException.
This method corresponds to the UniObjects Reply method.
UniCommand runCmd = uSession.CreateUniCommand( ) ;
runCmd.Command = "RUN BP FOO" ;
runCmd.Execute();
if ( runCmd.CommandStatus == UniObjectsTokens.UVS_REPLY )
{
/* Command may need to respond to a ’Press y to continue’ */
runCmd.Reply( "Y" );
}Note: The UO.NET driver was updated in the September
2015 client to support the UO.NET Reply method. Calling the Reply
method will clear the Command objects Response property buffer.