AddPropertyType() abstract private method

abstract private AddPropertyType ( PropertyType propertyType ) : void
propertyType PropertyType
return void
Example #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);
 }
Example #2
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);
		}