public static SPFieldDefinitionCollection GetBasicFieldList(SharepointListType listType) { if (listType == SharepointListType.DocumenLibrary) { return(__DocLibsDefinitions); } else { return(__ListsDefinitions); } }
public static SPFieldDefinitionCollection GetBasicFieldList(SharepointListType listType) { if (listType == SharepointListType.DocumenLibrary) return (__DocLibsDefinitions); else return (__ListsDefinitions); }
public SPListDefinition(System.Data.DataRow list) { _ListData = list; _Type = (Convert.ToInt32(list["BaseType"]) == 1) ? SharepointListType.DocumenLibrary : SharepointListType.Other; }