日韩久久久精品,亚洲精品久久久久久久久久久,亚洲欧美一区二区三区国产精品 ,一区二区福利

使用 WSPBuilder 創建List Instance WSP 包

系統 2253 0
  1. Project structure
  2. ?

? 使用 WSPBuilder 創建List Instance WSP 包

? 2. Feature xml

???? <?xml version="1.0" encoding="utf-8"?>

?? <Feature? Id="C257B7BE-D5F3-4b9d-B146-5F13F2E96AE9"

????????? Title="CreateAnnouncementList"

????????? Description="Description for CreateAnnouncementList"

????????? Version="12.0.0.0"

????????? Hidden="FALSE"

????????? Scope="Web"

????????? DefaultResourceFile="core"

????????? xmlns="http://schemas.microsoft.com/sharepoint/">

?? ?<ElementManifests>

??? ??<ElementManifest Location="elements.xml"/>

?? ???<ElementFile Location="AnnouncementsList/schema.xml"/>

?? ?</ElementManifests>

?? </Feature>

? 3. Elements xml

?<?xml version="1.0" encoding="utf-8" ?>

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">

? <ListTemplate

??? FeatureId="C257B7BE-D5F3-4b9d-B146-5F13F2E96AE9"

??? Name="AnnouncementsList"

??? DisplayName="AnnouncementsList"

??? Description=""

??? BaseType="0"

??? Type="100"

??? OnQuickLaunch="TRUE"

??? SecurityBits="11"

??? Sequence="410"

??? Image="/_layouts/images/itgen.gif" />

? <ListInstance

??? FeatureId="C257B7BE-D5F3-4b9d-B146-5F13F2E96AE9"

??? Title="AnnouncementsList"

??? Url="Lists/AnnouncementsList"

??? Description="AnnouncementsList"

??? TemplateType="100" />

? </Elements>

? 4 . Note:

Element xml 文件中的ListTemplate 的Name 的名稱必須和包含Schema.xml的文件夾名稱保持一致。否則在激活Feature時會報錯。錯誤信息如下:

Exception from HRESULT: 0x81070201?? at Microsoft.SharePoint.Library.SPRequestInternalClass.CreateList(String bstrWebUrl, String bstrTitle, String bstrDescription, String bstrListUrl, String bstrFeatureId, Int32 lTemplateID, String bstrDocTemplateType, ListQuickLaunchOptions qlOpt)
???at Microsoft.SharePoint.Library.SPRequest.CreateList(String bstrWebUrl, String bstrTitle, String bstrDescription, String bstrListUrl, String bstrFeatureId, Int32 lTemplateID, String bstrDocTemplateType, ListQuickLaunchOptions qlOpt)

ListTemplate和ListInstance文件的FeatureId 與Feature 文件保持一致。

使用 WSPBuilder 創建List Instance WSP 包


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 灌云县| 庐江县| 景谷| 兴义市| 镇沅| 福建省| 井冈山市| 龙山县| 台安县| 行唐县| 澄江县| 霍州市| 黔西县| 曲周县| 康保县| 满城县| 沙田区| 项城市| 盐池县| 东丰县| 漳州市| 无锡市| 靖安县| 阿瓦提县| 贡嘎县| 华宁县| 麦盖提县| 兴宁市| 台州市| 华坪县| 崇礼县| 保山市| 西乌| 竹溪县| 武乡县| 裕民县| 玉门市| 兰坪| 凤阳县| 容城县| 论坛|