You can use the following method to check the type of a field:
itemField is EmbeddedSchemaField itemField is KeywordField
and Itemfield GetType also provides the same information.
switch (itemField.GetType().Name) { case "EmbeddedSchemaField": fieldType = "EmbeddedSchema"; break; case "DateField": fieldType = "Date Field"; break; case "MultiLineTextField": fieldType = "RTF Text"; break; default: break; }
Ram g source share