CSOM中如何取到managed metadata类型字段的类型信息

Field.fieldTypeKind返回的是Invalid

[解决方法]

There is no "Metadata" type of field in the SP.FieldType Enumeration, so it would return 0(invalid) when try to retrieve SP.Field.fieldTypeKind Property.

If you just want to distinguish the field types, we can use SP.Field.typeDisplayName Property orSP.Field.id Property.

 

From: https://social.msdn.microsoft.com/Forums/vstudio/en-US/98cdb784-feff-4db0-8f7d-68e4f9a8e532/fieldtypeid-of-multiline-field-and-managed-metadata-field?forum=appsforsharepoint

原文地址:https://www.cnblogs.com/time-is-life/p/7125968.html