-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathColumnDef.cs
More file actions
39 lines (37 loc) · 1.14 KB
/
ColumnDef.cs
File metadata and controls
39 lines (37 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* This is to hold the column definitions. The strategy is to pull out of the SharePoint list the columns
* we want (there are many columns, most we don't care about) store them as a collection of this ColumnDef
* and then use that collection to pull the columns we want to see
* Matt Kalal
*/
namespace SP2010WS
{
public class ColumnDef
{
public string ColName;
public string ColType;
public int ColLen;
private string ColInternalName;
public ColumnDef(string cname, string ciname, string ctype, int clen)
{
ColName = cname;
ColInternalName = ciname;
ColType = ctype;
ColLen = clen;
}
public ColumnDef(string cname, string ciname, string ctype, string clen)
{
ColName = cname;
ColInternalName = ciname;
ColType = ctype;
if (!int.TryParse(clen, out ColLen))
{
ColLen = 4000;
}
}
public string GetInternalColumnName()
{
return ColInternalName;
}
}
}