コード例 #1
0
        //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]
        public void CanDeploySimpleTreeViewSettingsDefinition()
        {
            var treeViewSettings = new TreeViewSettingsDefinition
            {
                TreeViewEnabled    = true,
                QuickLaunchEnabled = true
            };

            var model = SPMeta2Model.NewWebModel(web =>
            {
                web.AddTreeViewSettings(treeViewSettings);
            });

            DeployModel(model);
        }
コード例 #2
0
 public static ModelNode AddTreeViewSettings(this ModelNode model, TreeViewSettingsDefinition definition, Action <ModelNode> action)
 {
     return(model.AddDefinitionNode(definition, action));
 }
コード例 #3
0
 public static ModelNode AddTreeViewSettings(this ModelNode model, TreeViewSettingsDefinition definition)
 {
     return(AddTreeViewSettings(model, definition, null));
 }
コード例 #4
0
 public static TModelNode AddTreeViewSettings <TModelNode>(this TModelNode model, TreeViewSettingsDefinition definition,
                                                           Action <TreeViewSettingsModelNode> action)
     where TModelNode : ModelNode, IWebModelNode, new()
 {
     return(model.AddTypedDefinitionNode(definition, action));
 }
コード例 #5
0
 public static TModelNode AddTreeViewSettings <TModelNode>(this TModelNode model, TreeViewSettingsDefinition definition)
     where TModelNode : ModelNode, IWebModelNode, new()
 {
     return(AddTreeViewSettings(model, definition, null));
 }