本文整理汇总了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);
}
示例2: AddWebPartGalleryFiles
public static ModelNode AddWebPartGalleryFiles(this ModelNode model, IEnumerable<WebPartGalleryFileDefinition> definitions)
{
foreach (var definition in definitions)
model.AddDefinitionNode(definition);
return model;
}
示例3: AddContentTypeLinks
public static ModelNode AddContentTypeLinks(this ModelNode model, IEnumerable<ContentTypeLinkDefinition> definitions)
{
foreach (var definition in definitions)
model.AddDefinitionNode(definition);
return model;
}
示例4: AddProperties
public static ModelNode AddProperties(this ModelNode model, IEnumerable<PropertyDefinition> definitions)
{
foreach (var definition in definitions)
model.AddDefinitionNode(definition);
return model;
}
示例5: AddBusinessDataFields
public static ModelNode AddBusinessDataFields(this ModelNode model, IEnumerable<BusinessDataFieldDefinition> definitions)
{
foreach (var definition in definitions)
model.AddDefinitionNode(definition);
return model;
}
示例6: AddAlternateUrls
public static ModelNode AddAlternateUrls(this ModelNode model, IEnumerable<AlternateUrlDefinition> definitions)
{
foreach (var definition in definitions)
model.AddDefinitionNode(definition);
return model;
}
示例7: AddReusableTextItems
public static ModelNode AddReusableTextItems(this ModelNode model, IEnumerable<ReusableTextItemDefinition> definitions)
{
foreach (var definition in definitions)
model.AddDefinitionNode(definition);
return model;
}
示例8: AddImageRenditions
public static ModelNode AddImageRenditions(this ModelNode model, IEnumerable<ImageRenditionDefinition> definitions)
{
foreach (var definition in definitions)
model.AddDefinitionNode(definition);
return model;
}
示例9: AddControlDisplayTemplates
public static ModelNode AddControlDisplayTemplates(this ModelNode model, IEnumerable<ControlDisplayTemplateDefinition> definitions)
{
foreach (var definition in definitions)
model.AddDefinitionNode(definition);
return model;
}
示例10: AddComposedLookItems
public static ModelNode AddComposedLookItems(this ModelNode model, IEnumerable<ComposedLookItemDefinition> definitions)
{
foreach (var definition in definitions)
model.AddDefinitionNode(definition);
return model;
}
示例11: AddPublishingPageLayouts
public static ModelNode AddPublishingPageLayouts(this ModelNode model, IEnumerable<PublishingPageLayoutDefinition> definitions)
{
foreach (var definition in definitions)
model.AddDefinitionNode(definition);
return model;
}
示例12: AddEventReceivers
public static ModelNode AddEventReceivers(this ModelNode model, IEnumerable<EventReceiverDefinition> definitions)
{
foreach (var definition in definitions)
model.AddDefinitionNode(definition);
return model;
}
示例13: AddSummaryLinkFields
public static ModelNode AddSummaryLinkFields(this ModelNode model, IEnumerable<SummaryLinkFieldDefinition> definitions)
{
foreach (var definition in definitions)
model.AddDefinitionNode(definition);
return model;
}
示例14: AddSandboxSolutions
public static ModelNode AddSandboxSolutions(this ModelNode model, IEnumerable<SandboxSolutionDefinition> definitions)
{
foreach (var definition in definitions)
model.AddDefinitionNode(definition);
return model;
}
示例15: AddUserCustomActions
public static ModelNode AddUserCustomActions(this ModelNode model, IEnumerable<UserCustomActionDefinition> definitions)
{
foreach (var definition in definitions)
model.AddDefinitionNode(definition);
return model;
}