IRequest.GetPostObject<T> method
获取JSON方式提交的Body中的指定键的值并转换为对应的类型。
public T GetPostObject<T>(string name = "")
parameter | description |
---|---|
T | 需要转换的类名称。 |
name | Body中包含的键,如果name为空则将这个Body作为对象进行转换。 |
Return Value
如果Body中包含指定的键,则返回转换为指定对象后的的值;否则返回 null。
See Also
- interface IRequest
- namespace SiteServer.Plugin