C#
开发 文档
云函数的调用方法非常简单,如下为调用执行云端方法test的实现代码:
Bmob.Endpoint<Hashtable>("test", (resp, exception) =>{if (exception != null){print("调用失败, 失败原因为: " + exception.Message);return;}print("返回对象为: " + resp);});
调用时传递参数:
IDictionary<String, Object> parameters = new IDictionary<String, Object>{{"name","jay"}};Bmob.Endpoint<Hashtable>("test", parameters, (resp, exception) =>{if (exception != null){print("调用失败, 失败原因为: " + exception.Message);return;}print("返回对象为: " + resp);});
相关云函数的编写方式,请参考云函数开发文档。
Copyright © 2017 Bmob, Maintained by the Bmob Support.
搜索
请输入您要搜索的内容
Keyboard Shortcuts
| Keys | Action |
|---|---|
| ? | Open this help |
| ← | Previous page |
| → | Next page |
| s | Search |
[返回
旧版](https://docs.bmob.cn/data/Android/a_faststart/doc/index.html)
