This project is read-only.

SPFieldCollection Extension Methods


bool Contains(Guid id)
bool Contains(string name)
bool Contains(Func<SPField, bool> match)
Determines whether the specified field can be found in the collection.
Note: You can use the two build in variations (id or name) or you can add your own way of determining if the field exists.

T Field<T>(string name)
Converts a field in the collection to the preferred SPField type.
SPFieldLookup lookup = parent.Fields.Field<SPFieldLookup>("nextitem");

if (lookup == null)
{
   ....
]

Last edited Feb 18, 2010 at 7:59 PM by jole, version 4

Comments

No comments yet.