string tmpFieldName= tmpSPList.Fields.Add(dic.Key, SPFieldType.Text, false);
var newField = tmpSPList.Fields.GetFieldByInternalName(tmpFieldName);
newField.SchemaXml = newField.SchemaXml.Replace("Text", "XAttachmentField");
newField.SetCustomProperty("SiteURL", theSiteUrl);
newField.SetCustomProperty("WebURL", theWebURL);
newField.Update();

相关文章:

  • 2022-03-08
  • 2022-02-14
  • 2022-12-23
  • 2022-02-22
  • 2022-12-23
  • 2021-07-10
  • 2021-05-13
  • 2021-12-14
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-23
  • 2022-12-23
  • 2021-12-28
相关资源
相似解决方案