Copyright © 2020-2023 www.SOT9.com. All Rights Reserved .
合作联系: QQ: 3217490875
在开发有助于使这一进程的建设CAML查询的SharePoint内的实用程序类。NET代码变得更容易,尤其是对于更复杂的查询。
的神器出山:www.shenqi73.com示例查询使用实用工具类:
CAMLManager目标=新CAMLManager(新QueryGroup(“标题”,Types.FieldTypes.Text,Types.QueryTypes.Eq“列表项的标题”));
target.QueryGroups.Add(新QueryGroup(Types.FieldRefTypes.ID,“{D562C8AC-457A-446B-84D6-2FA26FAABED7}”,Types.FieldTypes.YesNo,Types.QueryTypes.Neq,“真”));
target.OrderBy.Add(新的OrderBy(“标题”,FALSE));
target.ViewFields.Add(:新ViewField(“标题”));
target.ViewFields.Add(新ViewField(“{D562C8AC-457A-446B-84D6 2FA26FAABED7,}”,Types.FieldRefTypes.ID));
target.RowLimit = 100;
串camlQuery = target.GetFullCAML();