понедельник, 10 сентября 2012 г.

Типы полей SharePoint


Список


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


NameFormat
AttachmentsSystem.Boolean
BooleanSystem.Boolean
CalculatedN/A
ChoiceSystem.String
ComputedN/A
CounterSystem.Int32
CrossProjectLinkSystem.Boolean
CurrencySystem.Double
DateTimeSystem.DateTime
GridChoiceSystem.String
GuidSystem.Guid
IntegerSystem.Int32
LookupSystem.String
MaxItemsSystem.Int32
ModStatSystem.Int32
MultiChoiceSystem.String
NoteSystem.String
NumberSystem.Double
RecurrenceSystem.Boolean
TextSystem.String
ThreadingSystem.String
URLSystem.String, System.String
UserSystem.String
NoteSystem.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

Комментариев нет:

Отправить комментарий