本文整理汇总了C#中SPListItem.GetSiteColumnStringValue方法的典型用法代码示例。如果您正苦于以下问题:C# SPListItem.GetSiteColumnStringValue方法的具体用法?C# SPListItem.GetSiteColumnStringValue怎么用?C# SPListItem.GetSiteColumnStringValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SPListItem
的用法示例。
在下文中一共展示了SPListItem.GetSiteColumnStringValue方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BrochureDownload
public BrochureDownload(SPListItem item)
: base(item)
{
_FirstName = item.GetSiteColumnStringValue(SiteColumns.NAME, string.Empty);
_LastName = item.GetSiteColumnStringValue(SiteColumns.LAST_NAME, string.Empty);
_Company = item.GetSiteColumnStringValue(SiteColumns.COMPANY, string.Empty);
_Email = item.GetSiteColumnStringValue(SiteColumns.EMAIL, string.Empty);
}
示例2: HomeSlide
public HomeSlide(SPListItem item)
: base(item)
{
SPFieldUrlValue spLink = item.GetSiteColumnUrlValue(SiteColumns.LINK);
_Title = item.File.Title;
_Description = item.GetSiteColumnStringValue(SiteColumns.DESCRIPTION, string.Empty);
_LinkUrl = spLink == null ? string.Empty : spLink.Url;
_LinkTitle = spLink == null ? string.Empty : spLink.Description;
_ImageUrl = item.File.ServerRelativeUrl;
_Color = item.GetSiteColumnStringValue(SiteColumns.COLOR, string.Empty);
}
示例3: ContactRequest
public ContactRequest(SPListItem item)
: base(item)
{
_FirstName = item.GetSiteColumnStringValue(SiteColumns.NAME, string.Empty);
_LastName = item.GetSiteColumnStringValue(SiteColumns.LAST_NAME, string.Empty);
_Company = item.GetSiteColumnStringValue(SiteColumns.COMPANY, string.Empty);
_Email = item.GetSiteColumnStringValue(SiteColumns.EMAIL, string.Empty);
_Phone = item.GetSiteColumnStringValue(SiteColumns.PHONE, string.Empty);
_Mobile = item.GetSiteColumnStringValue(SiteColumns.MOBILE, string.Empty);
_City = item.GetSiteColumnStringValue(SiteColumns.CITY, string.Empty);
_Subject = item.GetSiteColumnStringValue(SiteColumns.SUBJECT, string.Empty);
_OtherSubject = item.GetSiteColumnStringValue(SiteColumns.OTHER_SUBJECT, string.Empty);
}
示例4: DemoRequest
public DemoRequest(SPListItem item)
: base(item)
{
_FirstName = item.GetSiteColumnStringValue(SiteColumns.NAME, string.Empty);
_LastName = item.GetSiteColumnStringValue(SiteColumns.LAST_NAME, string.Empty);
_Company = item.GetSiteColumnStringValue(SiteColumns.COMPANY, string.Empty);
_Email = item.GetSiteColumnStringValue(SiteColumns.EMAIL, string.Empty);
_Phone = item.GetSiteColumnStringValue(SiteColumns.PHONE, string.Empty);
_Mobile = item.GetSiteColumnStringValue(SiteColumns.MOBILE, string.Empty);
_City = item.GetSiteColumnStringValue(SiteColumns.CITY, string.Empty);
}