public void DeletePropertyType(PropertyType propertyType) { if (propertyType == null) { throw new ArgumentNullException("propertyType"); } if (propertyType.SchemaRoot != this) { throw new SchemaEditorCommandException(SR.Exceptions.Schema.Msg_InconsistentHierarchy); } propertyType.CheckPropertyTypeUsage(SR.Exceptions.Schema.Msg_ProtectedPropetyTypeDeleteViolation); // remove slot this.PropertyTypes.Remove(propertyType); }
public void DeletePropertyType(PropertyType propertyType) { if (propertyType == null) throw new ArgumentNullException("propertyType"); if (propertyType.SchemaRoot != this) throw new SchemaEditorCommandException(SR.Exceptions.Schema.Msg_InconsistentHierarchy); propertyType.CheckPropertyTypeUsage(SR.Exceptions.Schema.Msg_ProtectedPropetyTypeDeleteViolation); //-- remove slot this.PropertyTypes.Remove(propertyType); }