当前位置: 首页>>代码示例>>C#>>正文


C# this.AddDefinitionNode方法代码示例

本文整理汇总了C#中this.AddDefinitionNode方法的典型用法代码示例。如果您正苦于以下问题:C# this.AddDefinitionNode方法的具体用法?C# this.AddDefinitionNode怎么用?C# this.AddDefinitionNode使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在this的用法示例。


在下文中一共展示了this.AddDefinitionNode方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: AddListFieldLink

        public static ModelNode AddListFieldLink(this ModelNode model, FieldDefinition definition, Action<ModelNode> action)
        {
            if (definition.Id != default(Guid))
            {
                return model.AddDefinitionNode(new ListFieldLinkDefinition
                {
                    FieldId = definition.Id
                }, action);
            }

            return model.AddDefinitionNode(new ListFieldLinkDefinition
            {
                FieldInternalName = definition.InternalName
            }, action);
        }
开发者ID:Uolifry,项目名称:spmeta2,代码行数:15,代码来源:ListFieldLinkDefinitionSyntax.cs

示例2: AddWebPartGalleryFiles

        public static ModelNode AddWebPartGalleryFiles(this ModelNode model, IEnumerable<WebPartGalleryFileDefinition> definitions)
        {
            foreach (var definition in definitions)
                model.AddDefinitionNode(definition);

            return model;
        }
开发者ID:Uolifry,项目名称:spmeta2,代码行数:7,代码来源:WebPartGalleryFileDefinitionSyntax.cs

示例3: AddContentTypeLinks

        public static ModelNode AddContentTypeLinks(this ModelNode model, IEnumerable<ContentTypeLinkDefinition> definitions)
        {
            foreach (var definition in definitions)
                model.AddDefinitionNode(definition);

            return model;
        }
开发者ID:Uolifry,项目名称:spmeta2,代码行数:7,代码来源:ContentTypeLinkDefinitionSyntax.cs

示例4: AddProperties

        public static ModelNode AddProperties(this ModelNode model, IEnumerable<PropertyDefinition> definitions)
        {
            foreach (var definition in definitions)
                model.AddDefinitionNode(definition);

            return model;
        }
开发者ID:Uolifry,项目名称:spmeta2,代码行数:7,代码来源:PropertyDefinitionSyntax.cs

示例5: AddBusinessDataFields

        public static ModelNode AddBusinessDataFields(this ModelNode model, IEnumerable<BusinessDataFieldDefinition> definitions)
        {
            foreach (var definition in definitions)
                model.AddDefinitionNode(definition);

            return model;
        }
开发者ID:Uolifry,项目名称:spmeta2,代码行数:7,代码来源:BusineddDataFieldDefinitionSyntax.cs

示例6: AddAlternateUrls

        public static ModelNode AddAlternateUrls(this ModelNode model, IEnumerable<AlternateUrlDefinition> definitions)
        {
            foreach (var definition in definitions)
                model.AddDefinitionNode(definition);

            return model;
        }
开发者ID:Uolifry,项目名称:spmeta2,代码行数:7,代码来源:AlternateUrlDefinitionSyntax.cs

示例7: AddReusableTextItems

        public static ModelNode AddReusableTextItems(this ModelNode model, IEnumerable<ReusableTextItemDefinition> definitions)
        {
            foreach (var definition in definitions)
                model.AddDefinitionNode(definition);

            return model;
        }
开发者ID:Uolifry,项目名称:spmeta2,代码行数:7,代码来源:ReusableItemDefinitionSyntax.cs

示例8: AddImageRenditions

        public static ModelNode AddImageRenditions(this ModelNode model, IEnumerable<ImageRenditionDefinition> definitions)
        {
            foreach (var definition in definitions)
                model.AddDefinitionNode(definition);

            return model;
        }
开发者ID:Uolifry,项目名称:spmeta2,代码行数:7,代码来源:ImageRenditionDefinitionSyntax.cs

示例9: AddControlDisplayTemplates

        public static ModelNode AddControlDisplayTemplates(this ModelNode model, IEnumerable<ControlDisplayTemplateDefinition> definitions)
        {
            foreach (var definition in definitions)
                model.AddDefinitionNode(definition);

            return model;
        }
开发者ID:Uolifry,项目名称:spmeta2,代码行数:7,代码来源:ControlDisplayTemplateDefinitionSyntax.cs

示例10: AddComposedLookItems

        public static ModelNode AddComposedLookItems(this ModelNode model, IEnumerable<ComposedLookItemDefinition> definitions)
        {
            foreach (var definition in definitions)
                model.AddDefinitionNode(definition);

            return model;
        }
开发者ID:Uolifry,项目名称:spmeta2,代码行数:7,代码来源:ComposedLookItemDefinitionSyntax.cs

示例11: AddPublishingPageLayouts

        public static ModelNode AddPublishingPageLayouts(this ModelNode model, IEnumerable<PublishingPageLayoutDefinition> definitions)
        {
            foreach (var definition in definitions)
                model.AddDefinitionNode(definition);

            return model;
        }
开发者ID:Uolifry,项目名称:spmeta2,代码行数:7,代码来源:PublishingPageLayoutDefinitionSyntax.cs

示例12: AddEventReceivers

        public static ModelNode AddEventReceivers(this ModelNode model, IEnumerable<EventReceiverDefinition> definitions)
        {
            foreach (var definition in definitions)
                model.AddDefinitionNode(definition);

            return model;
        }
开发者ID:Uolifry,项目名称:spmeta2,代码行数:7,代码来源:EventReceiverDefinitionSyntax.cs

示例13: AddSummaryLinkFields

        public static ModelNode AddSummaryLinkFields(this ModelNode model, IEnumerable<SummaryLinkFieldDefinition> definitions)
        {
            foreach (var definition in definitions)
                model.AddDefinitionNode(definition);

            return model;
        }
开发者ID:Uolifry,项目名称:spmeta2,代码行数:7,代码来源:SummaryLinkFieldDefinitionSyntax.cs

示例14: AddSandboxSolutions

        public static ModelNode AddSandboxSolutions(this ModelNode model, IEnumerable<SandboxSolutionDefinition> definitions)
        {
            foreach (var definition in definitions)
                model.AddDefinitionNode(definition);

            return model;
        }
开发者ID:Uolifry,项目名称:spmeta2,代码行数:7,代码来源:SandboxSolutionDefinitionSyntax.cs

示例15: AddUserCustomActions

        public static ModelNode AddUserCustomActions(this ModelNode model, IEnumerable<UserCustomActionDefinition> definitions)
        {
            foreach (var definition in definitions)
                model.AddDefinitionNode(definition);

            return model;
        }
开发者ID:Uolifry,项目名称:spmeta2,代码行数:7,代码来源:UserCustomActionSyntax.cs


注:本文中的this.AddDefinitionNode方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。