Example #1
0
        public ArtDevContentType CreateContentType(string Name, SPContentTypeId parent)
        {
            SPContentType     type       = NewOrRefContentType(Name, parent);
            ArtDevContentType ArtDevType = new ArtDevContentType(type);

            return(ArtDevType);
        }
Example #2
0
        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);
        }