Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 Web 服务从我的一个文档库中获取自定义列字段的 ID/GUID。如何在 C# 中执行此操作?
奥拉!
在 C# 中试试这个
SPWeb web = SPContext.Current.Web as SPWeb; Guid id = web.AvailableContentTypes["ContentTypeName"].Fields["FieldName"].Id;
问候,
佩德罗
您需要通过 SiteData webservice 获取 GUID,Webs webserivce 不会检索 ID....
http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/3dd5871c-b52e-45c9-8ab2-9b9be092dede/