0
string queryText = string.Format(@"<Where>
                <And>    
                <Neq><FieldRef Name='EventType' /><Value Type='recurrence'>3</Value> </Neq> 

                <And>  
                    <Eq><FieldRef Name='fRecurrence'/><Value Type='Recurrance'>True</Value></Eq>
                    <And>  
                      <Geq><FieldRef Name='EndDate' /><Value Type='DateTime'>{0}</Value></Geq>
                      <Leq><FieldRef Name='StartDate' /><Value Type='DateTime'>{0}</Value></Leq> 
                    </And>     
                </And>

            </And>
           </Where> ", new DateTime(selectedDate.Year, selectedDate.Month, selectedDate.Day).ToString("yyyy-MM-dd"));

これは、Windows で GetListItem をフィルタリングするために sharepoint で使用されるタイプ XmlNode の ndQuery です。WP8 で同じことをしたいのですが、XElement を使用する Xml をサポートしていないため、この xml を XElement に変換してください。前もって感謝します。

4

2 に答える 2

0

私の問題は解決しました。すべての貴重な回答に感謝します。上記のエラーは、sharepoint のデータが不足しているために発生します。

于 2013-04-08T04:10:45.400 に答える