ALFA.Database.ACR_RunScriptOnServer C# (CSharp) Метод

ACR_RunScriptOnServer() публичный Метод

Run a script on a remote server. The script must exist on the server. If acknowledgement is desired, it must be implemented in the form of a reply IPC request initiated by the script invoked. A script executed by this function must follow this prototype: void main(int SourceServerID, string Argument);
public ACR_RunScriptOnServer ( int DestinationServerID, string ScriptName, string ScriptArgument ) : bool
DestinationServerID int Supplies the destination server /// ID.
ScriptName string Supplies the name of the script.
ScriptArgument string Supplies an optional argument to pass /// to the script.
Результат bool
        public bool ACR_RunScriptOnServer(int DestinationServerID, string ScriptName, string ScriptArgument)
        {
            DemandInitialize();

            return (int)ACR_RunScriptOnServer_Method.Invoke(DBLibraryScript, new object[] { DestinationServerID, ScriptName, ScriptArgument }) != CLRScriptBase.FALSE ? true : false;
        }