Sharepoint 如何设置;“视域”;属性在C中为true#

Sharepoint 如何设置;“视域”;属性在C中为true#,sharepoint,Sharepoint,我试图在C中设置viewfields属性=true,以便在“Getlistitems”SOAP调用返回的“ows_MetaInfo”属性中获得所需的一些值。如果我用代码创建XML,我该怎么做 System.Xml.XmlDocument xmlDoc = new System.Xml.XmlDocument(); System.Xml.XmlElement query = xmlDoc.CreateElement("Query"); System.

我试图在C中设置viewfields属性=true,以便在“Getlistitems”SOAP调用返回的“ows_MetaInfo”属性中获得所需的一些值。如果我用代码创建XML,我该怎么做

System.Xml.XmlDocument xmlDoc = new System.Xml.XmlDocument();
            System.Xml.XmlElement query = xmlDoc.CreateElement("Query");
            System.Xml.XmlElement viewFields = xmlDoc.CreateElement("ViewFields");
            System.Xml.XmlElement rowLimit = xmlDoc.CreateElement("RowLimit");
            System.Xml.XmlElement queryOptions = xmlDoc.CreateElement("QueryOptions");
            System.Xml.XmlElement webID = xmlDoc.CreateElement("WebID");
第一次查看后,我尝试设置viewFields属性,但没有成功:

System.Xml.XmlDocument xmlDoc = new System.Xml.XmlDocument();
            System.Xml.XmlElement query = xmlDoc.CreateElement("Query");
            System.Xml.XmlElement viewFields = xmlDoc.CreateElement("ViewFields");
            viewFields.SetAttribute("Properties", "True");
            System.Xml.XmlElement rowLimit = xmlDoc.CreateElement("RowLimit");
            System.Xml.XmlElement queryOptions = xmlDoc.CreateElement("QueryOptions");
            System.Xml.XmlElement webID = xmlDoc.CreateElement("WebID");
说明书上说:

属性:如果为True,并且在FieldRef元素中引用了MetaInfo字段,则与列表项相关的属性将在协议服务器响应中返回,前缀为“ows\U MetaInfo”

因此,您应该在
元素中包含