public ArtDevContentType CreateContentType(string Name, SPContentTypeId parent) { SPContentType type = NewOrRefContentType(Name, parent); ArtDevContentType ArtDevType = new ArtDevContentType(type); return(ArtDevType); }
public ArtDevList addContentType(ArtDevContentType type) { this.artDevContentTypes.Add(type); SPContentType CType = this.list.ContentTypes.Cast <SPContentType>().FirstOrDefault(c => c.Name.Equals(type.type.Name)) ?? this.list.ContentTypes.Add(type.type); this.list.Update(); return(this); }