This project is read-only.

SPContentType Extension Methods


void AddFieldRef(string name)
void AddFieldRef(Guid id)
Adds a fieldref to a content type. Uses internal name or id.
SPContentType custom = FindSomeContentType();

custom.AddFieldRef("HomePhone");
custom.AddFieldRef(SPBuiltInFieldId.WorkAddress);

Last edited Feb 15, 2010 at 5:46 PM by jole, version 4

Comments

No comments yet.