This project is read-only.

SPList Extension Methods

string Name()
Returns the name (internal name or RootFolder.Name) of the list.
from SPList list in web.Lists
where list.Name() == "somelist"
select list;

bool ContainsContentType(SPContentTypeId id)
Determines whether the specified SPList contains a content type.

bool TryFindContentType(SPContentTypeId id, out SPContentType result)
Determines whether the specified SPList contains a content type and returns that content type if it does in the out parameter.

void AddContentType(SPContentTypeId id)
Adds a content type to the list.
Note: You must call Update() after a call to this method has been made.

Last edited Feb 18, 2010 at 7:05 PM by jole, version 2

Comments

No comments yet.