调用SPFieldCollection.AddFieldAsXml()时出错。
为什么?这是我正在使用的字符串:
“< Field Type ='Note'Require ='FALSE'NumLines ='6'RichText ='FALSE'Disableable ='FALSE'ID ='{aaaaaaaa -aaaa-aaaa-aaaa-aaaaaaaaaaaa}'StaticName =' tempField'Name ='tempField'/>“
当然,我正在使用不同的指南。
编辑:MOSS2007 / WSS3.0 EDIT2:重述为问题。
答案 0 :(得分:2)
我忘记了DisplayName属性。以下作品:
“< Field Type ='Note'Require ='FALSE'NumLines ='6'RichText ='FALSE'Disableable ='FALSE'ID ='{aaaaaaaa -aaaa-aaaa-aaaa-aaaaaaaaaaaa''DisplayName =' tempField'StaticName ='tempField'Name ='tempField'/>“