SenseNet.ContentRepository.Storage.Schema.PropertySet.AddPropertyType C# (CSharp) Method

AddPropertyType() abstract private method

abstract private AddPropertyType ( PropertyType propertyType ) : void
propertyType PropertyType
return void
		internal abstract void AddPropertyType(PropertyType propertyType);
		internal abstract void RemovePropertyType(PropertyType propertyType);

Usage Example

Beispiel #1
0
 public void AddPropertyTypeToPropertySet(PropertyType propertyType, PropertySet owner)
 {
     if (propertyType == null)
     {
         throw new ArgumentNullException("propertyType");
     }
     if (owner == null)
     {
         throw new ArgumentNullException("owner");
     }
     if (propertyType.SchemaRoot != this)
     {
         throw new InvalidSchemaException(SR.Exceptions.Schema.Msg_InconsistentHierarchy);
     }
     if (owner.SchemaRoot != this)
     {
         throw new InvalidSchemaException(SR.Exceptions.Schema.Msg_InconsistentHierarchy);
     }
     owner.AddPropertyType(propertyType);
 }
All Usage Examples Of SenseNet.ContentRepository.Storage.Schema.PropertySet::AddPropertyType