SharePoint Search Crawled Properties Variant Types
If you ever need to create SharePoint managed properties through code then you’re going to be asked for a Variant Type. Since I couldn’t find an enum in the code or any documentation to identify them I started digging through the SharePoint UI and was able to hunt down the following. Hopefully it will save the next person some time.
Read more about programmatically creating managed properties via MSDN.
| Variant Type | Data Type |
|---|---|
| 31 | Text |
| 20 | Integer |
| 11 | Yes/No |
| 12 | Binary Data |
| 64 | Date/Time |