XmlRpc_Wrapper.XmlRpcServerMethod.Help C# (CSharp) Method

Help() public method

public Help ( ) : string
return string
        public virtual string Help()
        {
            return "no help";
        }
    }

Usage Example

コード例 #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());
            }