I would like to know how to use the custom SPFieldType (Existing on the Site) when adding new SPList column.

E.g. [Normal way using the SPFieldType.Text field type]

list.Fields.Add("Location", SPFieldType.Text, true);
list.Update();

How about for the custom field type?

list.Fields.Add("Location", [Custom SPField Type], true); ?

Thanks in advance.

有帮助吗?

解决方案

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top