SharePoint 网站配置与工作流全解析
1. SharePoint 网站配置
在 SharePoint 中,网站配置是一个关键环节。我们可以通过自定义代码来调整子网站的导航设置,使其继承父网站的导航。以下是一个示例代码,展示了如何实现这一功能:
using System;
using Microsoft.SharePoint;
namespace WingtipToysWebTemplates.SetSubSiteNavigation
{
/// <summary>
/// Web Events
/// </summary>
public class SetSubSiteNavigation : SPWebEventReceiver
{
/// <summary>
/// A site was provisioned.
/// </summary>
public override void WebProvisioned(SPWebEventProperties properties)
{
base.WebProvisioned(properties);
SPWeb web = properties.Web;
// Let sub-site navigation inherit from the parent site
web.Navi
超级会员免费看
订阅专栏 解锁全文
379

被折叠的 条评论
为什么被折叠?



