Help() public method

public Help ( ) : string
return string
Esempio n. 1
0
            private void execute(XmlRpcValue parms, XmlRpcValue result)
            {
                if (parms[0].Type != XmlRpcValue.ValueType.TypeString)
                {
                    throw new XmlRpcException(METHOD_HELP + ": Invalid argument type");
                }

                XmlRpcServerMethod m = server.FindMethod(parms[0].GetString());

                if (m == null)
                {
                    throw new XmlRpcException(METHOD_HELP + ": Unknown method name");
                }

                result.Set(m.Help());
            }