public static ContentTypePartDefinitionBuilder ContainedContentTypes(this ContentTypePartDefinitionBuilder builder, string[] containedContentTypes, bool keepExistingTypes = true) { return(keepExistingTypes ? builder.MergeSettings(new JObject() { ["ContainedContentTypes"] = new JArray(containedContentTypes) }) : builder.WithSetting("ContainedContentTypes", containedContentTypes)); }
public static ContentTypePartDefinitionBuilder WithDisplayName(this ContentTypePartDefinitionBuilder builder, string displayName) { return(builder.MergeSettings <ContentTypePartSettings>(x => x.DisplayName = displayName)); }
public static ContentTypePartDefinitionBuilder WithEditor(this ContentTypePartDefinitionBuilder builder, string editor) { return(builder.MergeSettings <ContentTypePartSettings>(x => x.Editor = editor)); }
public static ContentTypePartDefinitionBuilder WithPosition(this ContentTypePartDefinitionBuilder builder, string position) { return(builder.MergeSettings <ContentTypePartSettings>(x => x.Position = position)); }
public static ContentTypePartDefinitionBuilder WithDescription(this ContentTypePartDefinitionBuilder builder, string description) { return(builder.MergeSettings <ContentTypePartSettings>(x => x.Description = description)); }