IContentApi.GetContentInfoList method
获取满足条件的翻页内容列表。 配合GetCount方法,能够实现内容的翻页效果。
public List<IContentInfo> GetContentInfoList(int siteId, int channelId, string whereString,
string orderString, int limit, int offset)
parameter | description |
---|---|
siteId | 站点Id。 |
channelId | 栏目Id。 |
whereString | WHERE SQL语句 |
orderString | ORDER SQL语句 |
limit | 返回结果的数量。 如果不限制,将 limit 值设置为 0。 如果给定大于0的值,返回的结果将不会超过这个数目。 |
offset | 返回结果的偏移量。 offset 表示在开始返回行之前跳过这么多行,如果从第一行开始返回,offset 是 0,以此类推。 |
Return Value
如果满足条件的内容列表存在,则返回内容列表;否则返回 null。
See Also
- interface IContentInfo
- interface IContentApi
- namespace SiteServer.Plugin