示例#1
0
 public ContentPartDefinition(string name, IEnumerable <ContentPartFieldDefinition> fields, SettingsDictionary settings)
 {
     Name     = name;
     Fields   = fields.ToReadOnlyCollection();
     Settings = settings;
 }
示例#2
0
 public ContentPartDefinition(string name)
 {
     Name     = name;
     Fields   = Enumerable.Empty <ContentPartFieldDefinition>();
     Settings = new SettingsDictionary();
 }
示例#3
0
 public ContentPartFieldDefinition(ContentFieldDefinition contentFieldDefinition, string name, SettingsDictionary settings)
 {
     Name            = name;
     FieldDefinition = contentFieldDefinition;
     Settings        = settings;
 }
示例#4
0
 public ContentPartFieldDefinition(string name)
 {
     Name            = name;
     FieldDefinition = new ContentFieldDefinition(null);
     Settings        = new SettingsDictionary();
 }
示例#5
0
 public ContentTypeDefinition(string name, string displayName, IEnumerable <ContentTypePartDefinition> parts, SettingsDictionary settings)
 {
     Name        = name;
     DisplayName = displayName;
     Parts       = parts.ToReadOnlyCollection();
     Settings    = settings;
 }