Список
Microsoft.SharePoint.SPField
Microsoft.SharePoint.SPFieldAttachments
Microsoft.SharePoint.SPFieldBoolean
Microsoft.SharePoint.SPFieldCalculated
Microsoft.SharePoint.SPFieldComputed
Microsoft.SharePoint.SPFieldCrossProjectLink
Microsoft.SharePoint.SPFieldDateTime
Microsoft.SharePoint.SPFieldFile
Microsoft.SharePoint.SPFieldGuid
Microsoft.SharePoint.SPFieldLookup
Microsoft.SharePoint.Applications.GroupBoard.SPFieldFacilities
Microsoft.SharePoint.SPFieldUser
Microsoft.SharePoint.SPFieldMultiChoice
Microsoft.SharePoint.SPFieldMultiColumn
Microsoft.SharePoint.SPFieldMultiLineText
Microsoft.SharePoint.SPFieldNumber
Microsoft.SharePoint.SPFieldPageSeparator
Microsoft.SharePoint.SPFieldRecurrence
Microsoft.SharePoint.SPFieldText
Microsoft.SharePoint.SPFieldUrl
Name | Format |
---|---|
Attachments | System.Boolean |
Boolean | System.Boolean |
Calculated | N/A |
Choice | System.String |
Computed | N/A |
Counter | System.Int32 |
CrossProjectLink | System.Boolean |
Currency | System.Double |
DateTime | System.DateTime |
GridChoice | System.String |
Guid | System.Guid |
Integer | System.Int32 |
Lookup | System.String |
MaxItems | System.Int32 |
ModStat | System.Int32 |
MultiChoice | System.String |
Note | System.String |
Number | System.Double |
Recurrence | System.Boolean |
Text | System.String |
Threading | System.String |
URL | System.String, System.String |
User | System.String |
Note | System.String |
Поле "Пользователь или группа"
Формат
Console.WriteLine(item["Кому назначено"].ToString());
1;#WIN-MAHUIK21MH6\администратор
Запись
emploer - LinqToSharePoint
taslItem["Кому назначено"] = emploer.DomainLoginИдентификатор ?? null;
Можно записать просто числовой ID юзера
http://msdn.microsoft.com/en-us/library/ms415089(v=office.14).aspx
Работа с полями SPFieldUser, SPFieldUrl and SPFieldLookup используя extension methods
Комментариев нет:
Отправить комментарий